diff options
author | ale <ale@FreeBSD.org> | 2010-06-25 15:44:18 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2010-06-25 15:44:18 +0800 |
commit | fa4ac22d11ad0ee68e075a0bbd01734d77469a41 (patch) | |
tree | 1504883703bf921d7dceeeb054b7b86228948241 /lang/php5/Makefile | |
parent | 9d0ecbfbda8fe617415194a8ae12cac31ea4e169 (diff) | |
download | freebsd-ports-gnome-fa4ac22d11ad0ee68e075a0bbd01734d77469a41.tar.gz freebsd-ports-gnome-fa4ac22d11ad0ee68e075a0bbd01734d77469a41.tar.zst freebsd-ports-gnome-fa4ac22d11ad0ee68e075a0bbd01734d77469a41.zip |
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
Diffstat (limited to 'lang/php5/Makefile')
-rw-r--r-- | lang/php5/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile index 0c85693bfac0..dc506b278157 100644 --- a/lang/php5/Makefile +++ b/lang/php5/Makefile @@ -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 |