Thu Nov 28 14:54:50 2019 UTC ()
lang/php73: avoid to use ifunc

Avoid to use ifunc on NetBSD.  Fix build problem on NetBSD current, 9.99.x.


(taca)
diff -r1.1 -r1.2 pkgsrc/lang/php73/Makefile.common

cvs diff -r1.1 -r1.2 pkgsrc/lang/php73/Attic/Makefile.common (expand / switch to unified diff)

--- pkgsrc/lang/php73/Attic/Makefile.common 2018/12/15 17:12:44 1.1
+++ pkgsrc/lang/php73/Attic/Makefile.common 2019/11/28 14:54:50 1.2
@@ -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
6PHP_VERSION_REQD= 73 6PHP_VERSION_REQD= 73
7 7
8.include "../../lang/php/common.mk" 8.include "../../lang/php/common.mk"
9 9
10CATEGORIES+= www 10CATEGORIES+= www
11MAINTAINER?= pkgsrc-users@NetBSD.org 11MAINTAINER?= 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
14CONFIGURE_ENV+= PHP_LIBXML_SHARED="1" 14CONFIGURE_ENV+= PHP_LIBXML_SHARED="1"
15 15
 16# avoid to use ifunc on NetBSD
 17.if ${OPSYS} == "NetBSD"
 18CONFIGURE_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
19CONFIGURE_ARGS+= php_cv_cc_dashr=no 24CONFIGURE_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
25BUILDLINK_DEPMETHOD.pcre2?= build 30BUILDLINK_DEPMETHOD.pcre2?= build
26CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2} 31CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
27.include "../../devel/pcre2/buildlink3.mk" 32.include "../../devel/pcre2/buildlink3.mk"