summaryrefslogtreecommitdiff
blob: 5c428979a1af149f866a89aa9038be48de4119e7 (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

--- a/configure.in
+++ b/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