summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-03 13:40:33 +0000
committerjlam <jlam@pkgsrc.org>2001-05-03 13:40:33 +0000
commit749befd222e214dc26e012bbfcfb046c347de26e (patch)
treea0f9182e42075a3124b1aecc0c68fff87aec8bda /www
parent77a8f97bdea3bc9b13b0921023cdb6d9a2b6fe70 (diff)
downloadpkgsrc-749befd222e214dc26e012bbfcfb046c347de26e.tar.gz
Only pass -Wl,-E to linker on ELF platforms. This fixes build problems
on a.out platforms pointed out by rh@netbsd.org.
Diffstat (limited to 'www')
-rw-r--r--www/ap-php4/Makefile6
-rw-r--r--www/php4/Makefile.module6
2 files changed, 8 insertions, 4 deletions
diff --git a/www/ap-php4/Makefile b/www/ap-php4/Makefile
index a2ed59467eb..342d7d31d10 100644
--- a/www/ap-php4/Makefile
+++ b/www/ap-php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2001/04/30 03:27:30 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2001/05/03 13:40:33 jlam Exp $
.include "../../www/php4/Makefile.common"
@@ -14,8 +14,10 @@ BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
CONFIGURE_ARGS+= --with-apxs=${LOCALBASE}/sbin/apxs
-# Ensure we export symbols in the linked shared object.
+# Ensure we export symbols in the linked ELF shared object.
+.if (${OBJECT_FMT} == "ELF")
LDFLAGS+= -Wl,-E
+.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so \
diff --git a/www/php4/Makefile.module b/www/php4/Makefile.module
index 0282191ee30..a502408ceb7 100644
--- a/www/php4/Makefile.module
+++ b/www/php4/Makefile.module
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.module,v 1.5 2001/05/01 17:34:43 jlam Exp $
+# $NetBSD: Makefile.module,v 1.6 2001/05/03 13:40:33 jlam Exp $
#
# This Makefile is provided to ease creating PHP4 packages for the extension
# modules distributed in the PHP4 sources.
@@ -29,8 +29,10 @@ MESSAGE_SUBST+= MODNAME=${MODNAME} \
PLIST_SRC= ${.CURDIR}/../../www/php4/pkg/PLIST.module
-# Ensure we export symbols in the linked shared objects.
+# Ensure we export symbols in the linked ELF shared objects.
+.if (${OBJECT_FMT} == "ELF")
LDFLAGS+= -Wl,-E
+.endif
do-build:
@cd ${EXTDIR}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${ALL_TARGET}