projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8945399
)
Only link with librt on Linux
author
Nathan Hjelm
<hjelmn@mac.com>
Tue, 17 Feb 2009 00:13:52 +0000
(21:13 -0300)
committer
Daniel Drake
<dsd@gentoo.org>
Tue, 17 Feb 2009 00:19:56 +0000
(21:19 -0300)
[dsd: tweak configure.ac change]
configure.ac
patch
|
blob
|
history
libusb/Makefile.am
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index e26ebe5a49f660e0eb7fc426d884bb364b8c12cf..2e344f79f6fcfde5c9952bef7cb55a8d5de321e7 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-17,6
+17,7
@@
case $host in
AC_SUBST(OS_LINUX)
AC_MSG_RESULT([Linux])
backend="linux"
+ AC_CHECK_LIB(rt, clock_gettime)
;;
*)
AC_MSG_ERROR([unsupported operating system])
diff --git
a/libusb/Makefile.am
b/libusb/Makefile.am
index 97743faa2bbc391235f7002713f2994038610db4..9ad8ec56f059d5c2c891b1b998159cd573041c63 100644
(file)
--- a/
libusb/Makefile.am
+++ b/
libusb/Makefile.am
@@
-10,7
+10,6
@@
endif
libusb_1_0_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) -pthread
libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC)
-libusb_1_0_la_LIBADD = -lrt
hdrdir = $(includedir)/libusb-1.0
hdr_HEADERS = libusb.h