summaryrefslogtreecommitdiff
path: root/www/ap-php4
diff options
context:
space:
mode:
authorjlam <jlam>2001-05-03 13:40:33 +0000
committerjlam <jlam>2001-05-03 13:40:33 +0000
commite00e9a6cb20ae2c32ee46f552f748544485f597f (patch)
treea0f9182e42075a3124b1aecc0c68fff87aec8bda /www/ap-php4
parentef999fff7f0ebc0f17f4271cd4e3be83c619e3f2 (diff)
downloadpkgsrc-e00e9a6cb20ae2c32ee46f552f748544485f597f.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/ap-php4')
-rw-r--r--www/ap-php4/Makefile6
1 files changed, 4 insertions, 2 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 \