summaryrefslogtreecommitdiff
blob: 3268055cd5442419a95e5c65c5ea3387b063c96b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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