ports/180125: [patch] add ZTS option to lang/php5
r4721 at tormail.org
r4721 at tormail.org
Sun Jun 30 15:30:00 UTC 2013
>Number: 180125
>Category: ports
>Synopsis: [patch] add ZTS option to lang/php5
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 30 15:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: r4721 at tormail.org
>Release:
>Organization:
>Environment:
>Description:
patch adds ZTS (zend-thread-safety) option, for assisting in developing PHP extensions.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: lang/php5/Makefile
===================================================================
--- lang/php5/Makefile (revision 322037)
+++ lang/php5/Makefile (working copy)
@@ -38,7 +38,7 @@
USE_GNOME= libxml2
-OPTIONS_DEFINE= CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR
+OPTIONS_DEFINE= CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR ZTS
OPTIONS_DEFAULT=CLI CGI IPV6 LINKTHR
CLI_DESC= Build CLI version
@@ -52,6 +52,7 @@
IPV6_DESC= Enable ipv6 support
MAILHEAD_DESC= Enable mail header patch
LINKTHR_DESC= Link thread lib (for threaded extensions)
+ZTS_DESC= Zend thread safety (for extension development)
CONFLICTS= php52-5* php53-5*
@@ -150,6 +151,10 @@
CONFIGURE_ENV+= LIBS="${LIBS} ${PTHREAD_LIBS}"
.endif
+.if ${PORT_OPTIONS:MZTS}
+CONFIGURE_ARGS+=--enable-maintainer-zts
+.endif
+
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list