diff options
author | Sascha Schumann <sas@php.net> | 1999-12-24 15:44:58 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-24 15:44:58 +0000 |
commit | 69f8907a29e8afa4b195bd6ba7ecff095bd00c76 (patch) | |
tree | 7d994e0842c44353a21cb7841488a103d6db5b8c /TSRM/tsrm.m4 | |
parent | 3f6e00e48ddef5ab2dd73aa093c3654edd6ca534 (diff) | |
download | php-git-69f8907a29e8afa4b195bd6ba7ecff095bd00c76.tar.gz |
Put -pthreads? into CFLAGS; libtool still filters it out during shared
library linking; need to find a way to prevent that.
Diffstat (limited to 'TSRM/tsrm.m4')
-rw-r--r-- | TSRM/tsrm.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4 index 4c3ddd8ed4..28443530a0 100644 --- a/TSRM/tsrm.m4 +++ b/TSRM/tsrm.m4 @@ -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 |