configure.ac: Do not use -pthread on Darwin
authorPeter Stuge <peter@stuge.se>
Sat, 30 Oct 2010 20:13:05 +0000 (22:13 +0200)
committerPeter Stuge <peter@stuge.se>
Mon, 13 Jun 2011 20:01:42 +0000 (22:01 +0200)
It's not needed because Darwin has POSIX Threads in libc. Fixes #96.

configure.ac

index c6515ad..febe0e9 100644 (file)
@@ -59,8 +59,7 @@ case $host in
        AC_MSG_RESULT([Darwin/MacOS X])
        backend="darwin"
        threads="posix"
-       THREAD_CFLAGS="-pthread"
-       PC_LIBS_PRIVATE="-Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-prebind -no-undefined -pthread"
+       PC_LIBS_PRIVATE="-Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-prebind -no-undefined"
        AM_LDFLAGS=${PC_LIBS_PRIVATE}
        AC_CHECK_HEADERS([poll.h])
        AC_CHECK_TYPE([nfds_t],