diff options
author | jlam <jlam> | 2001-10-20 17:46:50 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-10-20 17:46:50 +0000 |
commit | 271022f40d58f544b7534e35e283d882d8c8a4f4 (patch) | |
tree | df17133f991485f538a1c6ae50c995c47168ebd8 /www/apache6 | |
parent | 0301b5d3bb945b1e15b9bb84ea20069a26a75fe4 (diff) | |
download | pkgsrc-271022f40d58f544b7534e35e283d882d8c8a4f4.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/Makefile | 10 |
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 |