summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjoerg <joerg>2013-12-08 22:34:33 +0000
committerjoerg <joerg>2013-12-08 22:34:33 +0000
commita32eb4838d1e213924fa10e4eb71f5aa8e626a75 (patch)
treeab1ba7976d062b2d08a8ef9d9d7c01d178714bd7 /security
parent6260ed4d52d62bbfed1d88ba9e54bbe3c414fa40 (diff)
downloadpkgsrc-a32eb4838d1e213924fa10e4eb71f5aa8e626a75.tar.gz
Ignore missing return value when building against PHP 5.3.
Diffstat (limited to 'security')
-rw-r--r--security/php-suhosin/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/php-suhosin/Makefile b/security/php-suhosin/Makefile
index 84075f64d70..9ae6ab14275 100644
--- a/security/php-suhosin/Makefile
+++ b/security/php-suhosin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2013/04/08 11:17:21 rodent Exp $
+# $NetBSD: Makefile,v 1.10 2013/12/08 22:34:33 joerg Exp $
#
MODNAME= suhosin
@@ -18,4 +18,10 @@ PHP_VERSIONS_ACCEPTED= 53
CONFIGURE_ARGS= --enable-${MODNAME}
.include "../../lang/php/ext.mk"
+
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang) && ${_PHP_VERSION} == "53"
+CFLAGS+= -Wno-error=return-type
+.endif
+
.include "../../mk/bsd.pkg.mk"