blob: 3268055cd5442419a95e5c65c5ea3387b063c96b [file] [log] [blame]
Fix build with --as-needed
https://bugs.gentoo.org/268094
--- configure.in
+++ configure.in
@@ -289,7 +289,7 @@
if test "$enable_pthreads" = yes; then
echo "Using PTHREADS"
CFLAGS="$CFLAGS -DUSE_PTHREADS"
- LDFLAGS="$LDFLAGS -lpthread"
+ LIBS="$LIBS -lpthread"
elif test "$enable_pthreads" = no; then
echo "Not using pthreads"
else