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)
19941994AC_CACHE_VAL ( ac_cv_pthread ,
19951995[ ac_save_cc="$CC"
19961996CC="$CC"
1997- LDFLAGS ="-pthread"
1997+ CFLAGS ="-pthread"
19981998AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
19991999#include <stdio.h>
20002000#include <pthread.h>
@@ -2263,7 +2263,7 @@ then CC="$CC -Kpthread"
22632263elif test "$ac_cv_kthread" = "yes"
22642264then CC="$CC -Kthread"
22652265elif test "$ac_cv_pthread" = "yes"
2266- then CC="$CC"; BASECFLAGS="-pthread"; BASECXXFLAGS="-pthread"
2266+ then CC="$CC"; BASECFLAGS="$BASECFLAGS -pthread"; BASECXXFLAGS="$BASECXXFLAGS -pthread"
22672267fi
22682268
22692269AC_MSG_CHECKING ( for pthread_t )
@@ -2976,10 +2976,10 @@ then
29762976elif test "$ac_cv_pthread" = "yes"
29772977then
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
29852985else
You can’t perform that action at this time.
0 commit comments