Add an OPTION to force linking with libthr (default off). This is a hack needed

when using !ZTS PHP on FreeBSD 7.x/8.0 together with threaded extensions.

Feature safe:	yes
This commit is contained in:
Alex Dupre 2010-06-25 07:44:18 +00:00
parent 771b26eadb
commit 68d81f0fe6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256943
2 changed files with 10 additions and 4 deletions

View file

@ -43,7 +43,8 @@ OPTIONS= CLI "Build CLI version" on \
SUHOSIN "Enable Suhosin protection system" on \
MULTIBYTE "Enable zend multibyte support" off \
IPV6 "Enable ipv6 support" on \
MAILHEAD "Enable mail header patch" off
MAILHEAD "Enable mail header patch" off \
LINKTHR "Link thread lib (for threaded extensions)" off
CONFLICTS= php4-4* php5-pcre-* php5-spl-*
@ -119,7 +120,9 @@ CONFIGURE_ENV+= ac_cv_pthreads_lib="" \
pthreads_working="yes" \
lt_cv_path_SED="sed"
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
.if defined(WITH_LINKTHR)
CONFIGURE_ENV+= LIBS="${LIBS} ${PTHREAD_LIBS}"
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug

View file

@ -43,7 +43,8 @@ OPTIONS= CLI "Build CLI version" on \
SUHOSIN "Enable Suhosin protection system" on \
MULTIBYTE "Enable zend multibyte support" off \
IPV6 "Enable ipv6 support" on \
MAILHEAD "Enable mail header patch" off
MAILHEAD "Enable mail header patch" off \
LINKTHR "Link thread lib (for threaded extensions)" off
CONFLICTS= php4-4* php5-pcre-* php5-spl-*
@ -119,7 +120,9 @@ CONFIGURE_ENV+= ac_cv_pthreads_lib="" \
pthreads_working="yes" \
lt_cv_path_SED="sed"
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
.if defined(WITH_LINKTHR)
CONFIGURE_ENV+= LIBS="${LIBS} ${PTHREAD_LIBS}"
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug