Fix pthreads setup
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 8 Jan 2013 02:10:14 +0000 (20:10 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 8 Jan 2013 02:10:14 +0000 (20:10 -0600)
As reported by Raimund Steger.

configure.ac

index 4beca08..227a6f8 100644 (file)
@@ -598,6 +598,9 @@ if test "$os_win32" = no; then
        AX_PTHREAD([have_pthread=true])
 fi
 if $have_pthread; then
+       LIBS="$PTHREAD_LIBS $LIBS"
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       CC="$PTHREAD_CC"
        AC_DEFINE(HAVE_PTHREAD, 1, [Have POSIX threads])
 fi
 AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread)