Skip to content

Commit 44427e7

Browse files
committed
1 parent f990db6 commit 44427e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ AC_MSG_CHECKING(whether $CC accepts -pthread)
19941994
AC_CACHE_VAL(ac_cv_pthread,
19951995
[ac_save_cc="$CC"
19961996
CC="$CC"
1997-
LDFLAGS="-pthread"
1997+
CFLAGS="-pthread"
19981998
AC_LINK_IFELSE([AC_LANG_SOURCE([[
19991999
#include <stdio.h>
20002000
#include <pthread.h>
@@ -2263,7 +2263,7 @@ then CC="$CC -Kpthread"
22632263
elif test "$ac_cv_kthread" = "yes"
22642264
then CC="$CC -Kthread"
22652265
elif test "$ac_cv_pthread" = "yes"
2266-
then CC="$CC"; BASECFLAGS="-pthread"; BASECXXFLAGS="-pthread"
2266+
then CC="$CC"; BASECFLAGS="$BASECFLAGS -pthread"; BASECXXFLAGS="$BASECXXFLAGS -pthread"
22672267
fi
22682268

22692269
AC_MSG_CHECKING(for pthread_t)
@@ -2976,10 +2976,10 @@ then
29762976
elif test "$ac_cv_pthread" = "yes"
29772977
then
29782978
CC="$CC"
2979-
BASECFLAGS="-pthread"
2979+
BASECFLAGS="$BASECFLAGS -pthread"
29802980
if test "$ac_cv_cxx_thread" = "yes"; then
29812981
CXX="$CXX"
2982-
BASECXXFLAGS="-pthread"
2982+
BASECXXFLAGS="$BASECFLAGS -pthread"
29832983
fi
29842984
posix_threads=yes
29852985
else

0 commit comments

Comments
 (0)