diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-03 14:31:00 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-03 14:31:00 +0000 |
commit | 41dc957e4a457188f7124e13b1c6c4c1454ad4dd (patch) | |
tree | 2f8073faebe8ae95b485ea8131b926cb0e226e9f | |
parent | 96c8d6b3252ae5c61ee475e4cff2bad065c5ff0d (diff) | |
download | pkgsrc-41dc957e4a457188f7124e13b1c6c4c1454ad4dd.tar.gz |
Use --export-dynamic instead of -E as it's recognized by both the old
and new ld on both a.out and ELF, on advice from skrll.netbsd.org.
-rw-r--r-- | www/ap-php4/Makefile | 8 | ||||
-rw-r--r-- | www/php4/Makefile.module | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/www/ap-php4/Makefile b/www/ap-php4/Makefile index 342d7d31d10..65fbd5b989c 100644 --- a/www/ap-php4/Makefile +++ b/www/ap-php4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2001/05/03 13:40:33 jlam Exp $ +# $NetBSD: Makefile,v 1.13 2001/05/03 14:31:00 jlam Exp $ .include "../../www/php4/Makefile.common" @@ -14,10 +14,8 @@ BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5 CONFIGURE_ARGS+= --with-apxs=${LOCALBASE}/sbin/apxs -# Ensure we export symbols in the linked ELF shared object. -.if (${OBJECT_FMT} == "ELF") -LDFLAGS+= -Wl,-E -.endif +# Ensure we export symbols in the linked shared object. +LDFLAGS+= -Wl,--export-dynamic do-install: ${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so \ diff --git a/www/php4/Makefile.module b/www/php4/Makefile.module index e43d8efc7f7..15705fd79a0 100644 --- a/www/php4/Makefile.module +++ b/www/php4/Makefile.module @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.module,v 1.7 2001/05/03 13:41:43 jlam Exp $ +# $NetBSD: Makefile.module,v 1.8 2001/05/03 14:31:01 jlam Exp $ # # This Makefile is provided to ease creating PHP4 packages for the extension # modules distributed in the PHP4 sources. @@ -29,10 +29,8 @@ MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} PLIST_SRC= ${.CURDIR}/../../www/php4/pkg/PLIST.module -# Ensure we export symbols in the linked ELF shared objects. -.if (${OBJECT_FMT} == "ELF") -LDFLAGS+= -Wl,-E -.endif +# Ensure we export symbols in the linked shared objects. +LDFLAGS+= -Wl,--export-dynamic do-build: @cd ${EXTDIR}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${ALL_TARGET} |