summaryrefslogtreecommitdiff
path: root/www/php4
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/php4
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/php4')
-rw-r--r--www/php4/Makefile.module6
1 files changed, 4 insertions, 2 deletions
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}