]> granicus.if.org Git - php/commitdiff
Put -pthreads? into CFLAGS; libtool still filters it out during shared
authorSascha Schumann <sas@php.net>
Fri, 24 Dec 1999 15:44:58 +0000 (15:44 +0000)
committerSascha Schumann <sas@php.net>
Fri, 24 Dec 1999 15:44:58 +0000 (15:44 +0000)
library linking; need to find a way to prevent that.

TSRM/tsrm.m4

index 4c3ddd8ed4240a5ac3da61adf66f3a3cdd5d98b5..28443530a0a21e6bfe8ceab90e20df75c674746c 100644 (file)
@@ -43,19 +43,19 @@ AC_MSG_RESULT(yes - installed in $PTH_PREFIX)
 
 AC_DEFUN(TSRM_CHECK_PTHREADS,[
 
-old_LDFLAGS="$LDFLAGS"
+old_CFLAGS="$CFLAGS"
 
 if test -n "$GCC"; then
   dnl FreeBSD/Linux 
   TSRM_CHECK_GCC_ARG(-pthread, gcc_pthread)
 
   if test "$gcc_pthread" = "yes"; then
-    LDFLAGS="$LDFLAGS -pthread"
+    CFLAGS="$CFLAGS -pthread"
   else
     dnl gcc on Solaris
     TSRM_CHECK_GCC_ARG(-pthreads, gcc_pthreads)
     if test "$gcc_pthreads" = "yes"; then
-      LDFLAGS="$LDFLAGS -pthreads"
+      CFLAGS="$CFLAGS -pthreads"
     fi
   fi
 
@@ -63,7 +63,7 @@ if test -n "$GCC"; then
 fi
 
 if test "$ac_cv_func_pthread_kill" != "yes"; then
-  LDFLAGS="$old_LDFLAGS"
+  CFLAGS="$old_CFLAGS"
 dnl Fall back to the standard -lpthread
   AC_CHECK_LIB(pthread, pthread_kill)
   unset ac_cv_func_pthread_kill