File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1994,7 +1994,7 @@ AC_MSG_CHECKING(whether $CC accepts -pthread)
1994
1994
AC_CACHE_VAL ( ac_cv_pthread ,
1995
1995
[ ac_save_cc="$CC"
1996
1996
CC="$CC"
1997
- LDFLAGS ="-pthread"
1997
+ CFLAGS ="-pthread"
1998
1998
AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1999
1999
#include <stdio.h>
2000
2000
#include <pthread.h>
@@ -2263,7 +2263,7 @@ then CC="$CC -Kpthread"
2263
2263
elif test "$ac_cv_kthread" = "yes"
2264
2264
then CC="$CC -Kthread"
2265
2265
elif test "$ac_cv_pthread" = "yes"
2266
- then CC="$CC"; BASECFLAGS="-pthread"; BASECXXFLAGS="-pthread"
2266
+ then CC="$CC"; BASECFLAGS="$BASECFLAGS -pthread"; BASECXXFLAGS="$BASECXXFLAGS -pthread"
2267
2267
fi
2268
2268
2269
2269
AC_MSG_CHECKING ( for pthread_t )
@@ -2976,10 +2976,10 @@ then
2976
2976
elif test "$ac_cv_pthread" = "yes"
2977
2977
then
2978
2978
CC="$CC"
2979
- BASECFLAGS="-pthread"
2979
+ BASECFLAGS="$BASECFLAGS -pthread"
2980
2980
if test "$ac_cv_cxx_thread" = "yes"; then
2981
2981
CXX="$CXX"
2982
- BASECXXFLAGS="-pthread"
2982
+ BASECXXFLAGS="$BASECFLAGS -pthread"
2983
2983
fi
2984
2984
posix_threads=yes
2985
2985
else
You can’t perform that action at this time.
0 commit comments