summaryrefslogtreecommitdiff
path: root/www/apache6
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-10-20 17:46:50 +0000
committerjlam <jlam@pkgsrc.org>2001-10-20 17:46:50 +0000
commitc99b20643998fbd913c451fe940a1ee722f80120 (patch)
treedf17133f991485f538a1c6ae50c995c47168ebd8 /www/apache6
parentc495a2602619f089da1e6f1a060f89d744c5aff8 (diff)
downloadpkgsrc-c99b20643998fbd913c451fe940a1ee722f80120.tar.gz
Only link -lgcc whole-archive on NetBSD ELF platforms, to allow a.out
platforms to correctly links this package.
Diffstat (limited to 'www/apache6')
-rw-r--r--www/apache6/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/apache6/Makefile b/www/apache6/Makefile
index 16df28d4f06..1cab62a6969 100644
--- a/www/apache6/Makefile
+++ b/www/apache6/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2001/10/17 19:27:27 jlam Exp $
+# $NetBSD: Makefile,v 1.41 2001/10/20 17:46:50 jlam Exp $
#
# This package does not compile in mod_ssl support hooks, as it conflicts
# with IPv6-enable patch.
@@ -78,11 +78,11 @@ APACHE_CUSTOM_CFLAGS+= -DBUFFERED_LOGS
APACHE_CUSTOM_CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
.endif
-# On NetBSD, we need to link libgcc.a whole-archive so that certain symbols
-# from the C++ implementation (__get_eh_context, etc.) referenced by DSOs
-# written in C++ will resolve correctly.
+# On NetBSD ELF platforms, we need to link libgcc.a whole-archive so that
+# certain symbols from the C++ implementation (__get_eh_context, etc.)
+# referenced by DSOs written in C++ will resolve correctly.
#
-.if (${OPSYS} == "NetBSD")
+.if (${OPSYS} == "NetBSD") && (${OBJECT_FMT} == "ELF")
LINK_LIBGCC_LDFLAGS= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}"
.endif