POSIX thread conf check: preserve LIBS
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Apr 2010 12:35:47 +0000 (14:35 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Apr 2010 12:35:47 +0000 (14:35 +0200)
configure.ac

index 5cff7c5..c25249f 100644 (file)
@@ -333,7 +333,7 @@ if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then
                done
                LIBS=$OLIBS
            fi
-           LIBS=$PTHREAD_LIBS
+           LIBS="$LIBS $PTHREAD_LIBS"
            CFLAGS="$CFLAGS -DYAZ_POSIX_THREADS=1"
            YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_POSIX_THREADS=1"
            ])