diff options
author | Xiaofan Chen <xiaofanc@gmail.com> | 2012-01-13 18:07:34 +0100 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2012-01-13 18:07:34 +0100 |
commit | d2285744c7fa4007bb411be354268209d350b0f2 (patch) | |
tree | 1a107fbdc30d84efc92584f0cc3e7c1d88c48390 | |
parent | 93b0e09d53ed1d177631af9182378492481a790a (diff) | |
download | libusb-d2285744c7fa4007bb411be354268209d350b0f2.tar.gz |
configure.ac: Darwin: Move -lobjc from LIBS to PC_LIBS_PRIVATE
Since commit 40327cd134718475f6cec8935b856d4fdff2099c it is neccessary
to explicitly include -lobjc not only when linking libusb itself, but
also for programs linking statically against libusb. References #63.
See also http://marc.info/?m=132505900202378
-rw-r--r-- | configure.ac | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 34be1be..8830582 100644 --- a/configure.ac +++ b/configure.ac @@ -64,8 +64,7 @@ case $host in AC_MSG_RESULT([Darwin/Mac OS X]) backend="darwin" threads="posix" - LIBS="${LIBS} -lobjc" - PC_LIBS_PRIVATE="-Wl,-framework,IOKit -Wl,-framework,CoreFoundation" + PC_LIBS_PRIVATE="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation" LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind" AC_CHECK_HEADERS([poll.h]) AC_CHECK_TYPE([nfds_t], |