diff options
author | grant <grant> | 2003-05-31 13:29:20 +0000 |
---|---|---|
committer | grant <grant> | 2003-05-31 13:29:20 +0000 |
commit | 2a54da8c36096b29cd31da2b0422c397985ff7d6 (patch) | |
tree | d3e7464e99ad43f8dbd2645feaa3074a338a9a4e /www/apache6 | |
parent | fc685c7512d5d63ca034a6f50bdc67bec8782f70 (diff) | |
download | pkgsrc-2a54da8c36096b29cd31da2b0422c397985ff7d6.tar.gz |
link against shared libgcc_s when built with gcc3 so Apache modules
can resolve the required symbols.
Diffstat (limited to 'www/apache6')
-rw-r--r-- | www/apache6/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/www/apache6/Makefile b/www/apache6/Makefile index ae710e16a50..1b322433d37 100644 --- a/www/apache6/Makefile +++ b/www/apache6/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.70 2003/04/15 01:39:15 grant Exp $ +# $NetBSD: Makefile,v 1.71 2003/05/31 13:29:21 grant Exp $ # # This package does not compile in mod_ssl support hooks, as it conflicts # with IPv6-enable patch. @@ -110,9 +110,17 @@ APACHE_CUSTOM_CFLAGS+= -D_FILE_OFFSET_BITS=64 # .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 +# if we are using gcc3, we need to link against libgcc_s, too. This +# ensures modules can resolve symbols they require from gcc. +.if defined(USE_GCC3) +USE_GCC_SHLIB= # defined +LINK_LIBGCC_LDFLAGS+= -lgcc_s +.endif + +MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}" + # Use operating system's db1 functions (where available) .include "../../databases/db/buildlink2.mk" BUILDLINK_DEPENDS.db= db>=2.7.7 |