diff options
author | jlam <jlam@pkgsrc.org> | 2001-10-20 17:46:50 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-10-20 17:46:50 +0000 |
commit | c99b20643998fbd913c451fe940a1ee722f80120 (patch) | |
tree | df17133f991485f538a1c6ae50c995c47168ebd8 /www/apache | |
parent | c495a2602619f089da1e6f1a060f89d744c5aff8 (diff) | |
download | pkgsrc-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/apache')
-rw-r--r-- | www/apache/Makefile | 10 |
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 |