summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-10-27 09:08:20 +0000
committerjperkin <jperkin@pkgsrc.org>2015-10-27 09:08:20 +0000
commitd3b54948839884c2fbccdf53250ec691162f5c8f (patch)
tree57ce8a7dc224093fe608865ca95b5d14f288ddb5
parent6bcd0c97b2842a1649448e464855832b0bac7225 (diff)
downloadpkgsrc-d3b54948839884c2fbccdf53250ec691162f5c8f.tar.gz
Pass --disable-libgcc when using SunOS/clang, clang doesn't support the
test and will handle libgcc itself as appropriate.
-rw-r--r--lang/php54/Makefile8
-rw-r--r--lang/php55/Makefile8
-rw-r--r--lang/php56/Makefile8
3 files changed, 21 insertions, 3 deletions
diff --git a/lang/php54/Makefile b/lang/php54/Makefile
index d7446a7ed85..5381a4302d7 100644
--- a/lang/php54/Makefile
+++ b/lang/php54/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2015/09/07 12:02:05 jperkin Exp $
+# $NetBSD: Makefile,v 1.32 2015/10/27 09:08:20 jperkin Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -41,6 +41,12 @@ SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER} == "clang"
+CONFIGURE_ARGS+= --disable-libgcc
+.endif
+
post-extract:
cd ${WRKSRC} && \
${FIND} . -xdev -type f -name '*.orig' -exec ${RM} -f {} \;
diff --git a/lang/php55/Makefile b/lang/php55/Makefile
index 9610ef86d10..42d7c6a08cb 100644
--- a/lang/php55/Makefile
+++ b/lang/php55/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2015/09/07 12:02:05 jperkin Exp $
+# $NetBSD: Makefile,v 1.24 2015/10/27 09:08:20 jperkin Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -47,6 +47,12 @@ SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER} == "clang"
+CONFIGURE_ARGS+= --disable-libgcc
+.endif
+
post-extract:
cd ${WRKSRC} && \
${FIND} . -xdev -type f -name '*.orig' -exec ${RM} -f {} \;
diff --git a/lang/php56/Makefile b/lang/php56/Makefile
index 807ca54c927..5298ce342ac 100644
--- a/lang/php56/Makefile
+++ b/lang/php56/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2015/09/07 12:02:05 jperkin Exp $
+# $NetBSD: Makefile,v 1.9 2015/10/27 09:08:20 jperkin Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -47,6 +47,12 @@ INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
.endif
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER} == "clang"
+CONFIGURE_ARGS+= --disable-libgcc
+.endif
+
post-extract:
cd ${WRKSRC} && \
${FIND} . -xdev -type f -name '*.orig' -exec ${RM} -f {} \;