summaryrefslogtreecommitdiff
path: root/www/apache
diff options
context:
space:
mode:
authorjlam <jlam>2001-10-20 17:46:50 +0000
committerjlam <jlam>2001-10-20 17:46:50 +0000
commite3c438f89dd3f9cfa6be6eba910b65f13ad38dd0 (patch)
treedf17133f991485f538a1c6ae50c995c47168ebd8 /www/apache
parentf8086e48fadeb9c3c2cb3cc13f6a9b7bc8303fcf (diff)
downloadpkgsrc-e3c438f89dd3f9cfa6be6eba910b65f13ad38dd0.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/apache')
-rw-r--r--www/apache/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile
index 9188fdd5d04..97fd06dfbc8 100644
--- a/www/apache/Makefile
+++ b/www/apache/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.79 2001/10/19 09:52:22 veego Exp $
+# $NetBSD: Makefile,v 1.80 2001/10/20 17:46:50 jlam Exp $
#
# This pkg does not compile in mod_ssl, only the `mod_ssl EAPI' (a set of
# code hooks that allow mod_ssl to be compiled separately later, if desired).
@@ -83,11 +83,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