summaryrefslogtreecommitdiff
path: root/www/apache/Makefile
diff options
context:
space:
mode:
authorgrant <grant>2003-05-31 13:29:20 +0000
committergrant <grant>2003-05-31 13:29:20 +0000
commit2a54da8c36096b29cd31da2b0422c397985ff7d6 (patch)
treed3e7464e99ad43f8dbd2645feaa3074a338a9a4e /www/apache/Makefile
parentfc685c7512d5d63ca034a6f50bdc67bec8782f70 (diff)
downloadpkgsrc-2a54da8c36096b29cd31da2b0422c397985ff7d6.tar.gz
link against shared libgcc_s when built with gcc3 so Apache modules
can resolve the required symbols.
Diffstat (limited to 'www/apache/Makefile')
-rw-r--r--www/apache/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile
index 4de8cde9f88..cdeaa5c3b89 100644
--- a/www/apache/Makefile
+++ b/www/apache/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.125 2003/04/15 01:39:15 grant Exp $
+# $NetBSD: Makefile,v 1.126 2003/05/31 13:29:20 grant 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).
@@ -107,9 +107,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)
USE_DB185= # defined