diff options
author | Peter Stuge <peter@stuge.se> | 2010-11-21 23:38:46 +0100 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-06-13 22:01:43 +0200 |
commit | 3cbe5736469c1c52049752c137ae11387e9b079d (patch) | |
tree | 8c63134e3f944e4d7a6cddc265c49e050424ca45 /configure.ac | |
parent | ef39d1510580b9fcbacf13443fa7a4e553a9a88e (diff) | |
download | libusb-3cbe5736469c1c52049752c137ae11387e9b079d.tar.gz |
configure.ac: Clean up PC_LIBS_PRIVATE and AM_LDFLAGS
Move linker options for when linking the library itself from
PC_LIBS_PRIVATE into AM_LDFLAGS. PC_LIBS_PRIVATE should only
contain flags needed to link applications statically against libusb.
Fixes #72.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f1edfa3..f810473 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,7 @@ case $host in threads="posix" THREAD_CFLAGS="-pthread" PC_LIBS_PRIVATE="${PC_LIBS_PRIVATE} -pthread" + AM_LDFLAGS="-Wl,--no-undefined" AC_CHECK_HEADERS([poll.h]) AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument]) ;; @@ -54,7 +55,8 @@ case $host in AC_MSG_RESULT([Darwin/Mac OS X]) backend="darwin" threads="posix" - PC_LIBS_PRIVATE="-Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-prebind -no-undefined" + PC_LIBS_PRIVATE="-Wl,-framework,IOKit -Wl,-framework,CoreFoundation" + AM_LDFLAGS="-Wl,-prebind -Wl,--no-undefined" AC_CHECK_HEADERS([poll.h]) AC_CHECK_TYPE([nfds_t], [AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])], @@ -78,7 +80,7 @@ case $host in backend="windows" threads="posix" PC_LIBS_PRIVATE="-lsetupapi -lole32 -ladvapi32" - AM_LDFLAGS="-no-undefined -avoid-version" + AM_LDFLAGS="-no-undefined -avoid-version --add-stdcall-alias" AC_CHECK_TOOL(RC, windres, no) AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument]) ;; |