| @@ -1,27 +1,32 @@ | | | @@ -1,27 +1,32 @@ |
1 | # $NetBSD: Makefile.common,v 1.1 2018/12/15 17:12:44 taca Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.2 2019/11/28 14:54:50 taca Exp $ |
2 | # used by lang/php73/Makefile.php | | 2 | # used by lang/php73/Makefile.php |
3 | # used by lang/php/ext.mk | | 3 | # used by lang/php/ext.mk |
4 | # used by meta-pkgs/php73-extensions/Makefile | | 4 | # used by meta-pkgs/php73-extensions/Makefile |
5 | | | 5 | |
6 | PHP_VERSION_REQD= 73 | | 6 | PHP_VERSION_REQD= 73 |
7 | | | 7 | |
8 | .include "../../lang/php/common.mk" | | 8 | .include "../../lang/php/common.mk" |
9 | | | 9 | |
10 | CATEGORIES+= www | | 10 | CATEGORIES+= www |
11 | MAINTAINER?= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER?= pkgsrc-users@NetBSD.org |
12 | | | 12 | |
13 | # needed due to (broken?) configure checks in php-xmlrpc and php5-dom | | 13 | # needed due to (broken?) configure checks in php-xmlrpc and php5-dom |
14 | CONFIGURE_ENV+= PHP_LIBXML_SHARED="1" | | 14 | CONFIGURE_ENV+= PHP_LIBXML_SHARED="1" |
15 | | | 15 | |
| | | 16 | # avoid to use ifunc on NetBSD |
| | | 17 | .if ${OPSYS} == "NetBSD" |
| | | 18 | CONFIGURE_ARGS+= ax_cv_have_func_attribute_ifunc=no |
| | | 19 | .endif |
| | | 20 | |
16 | .include "../../mk/compiler.mk" | | 21 | .include "../../mk/compiler.mk" |
17 | .if !empty(PKGSRC_COMPILER:Mclang) | | 22 | .if !empty(PKGSRC_COMPILER:Mclang) |
18 | # configure test gets confused by wrappers dropping -R /usr/lib | | 23 | # configure test gets confused by wrappers dropping -R /usr/lib |
19 | CONFIGURE_ARGS+= php_cv_cc_dashr=no | | 24 | CONFIGURE_ARGS+= php_cv_cc_dashr=no |
20 | .endif | | 25 | .endif |
21 | | | 26 | |
22 | # not every extension actually depend on PCRE, and those which do | | 27 | # not every extension actually depend on PCRE, and those which do |
23 | # don't use internal pcre structures, so default to build-time | | 28 | # don't use internal pcre structures, so default to build-time |
24 | # dependency only | | 29 | # dependency only |
25 | BUILDLINK_DEPMETHOD.pcre2?= build | | 30 | BUILDLINK_DEPMETHOD.pcre2?= build |
26 | CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2} | | 31 | CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2} |
27 | .include "../../devel/pcre2/buildlink3.mk" | | 32 | .include "../../devel/pcre2/buildlink3.mk" |