summaryrefslogtreecommitdiff
path: root/www/apache
diff options
context:
space:
mode:
authorgrant <grant>2003-05-31 15:03:17 +0000
committergrant <grant>2003-05-31 15:03:17 +0000
commitd64a01b7dc721e1ad8139154369060a89171f9c8 (patch)
tree1f8a3971c64034c42a01eda4c31c5319f8788433 /www/apache
parent522d579d6edd57bc458e9f9648ec45bfb0da5e48 (diff)
downloadpkgsrc-d64a01b7dc721e1ad8139154369060a89171f9c8.tar.gz
tidy up logic for adding libgcc and libgcc_s. no functional change.
Diffstat (limited to 'www/apache')
-rw-r--r--www/apache/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile
index 5f05645850a..b4f4b9bd5fa 100644
--- a/www/apache/Makefile
+++ b/www/apache/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.128 2003/05/31 13:32:49 grant Exp $
+# $NetBSD: Makefile,v 1.129 2003/05/31 15:03:17 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).
@@ -105,19 +105,19 @@ APACHE_CUSTOM_CFLAGS+= -D_FILE_OFFSET_BITS=64
# certain symbols from the C++ implementation (__get_eh_context, etc.)
# referenced by DSOs written in C++ will resolve correctly.
#
-.if ${OPSYS} == "NetBSD" && ${OBJECT_FMT} == "ELF"
+.if ${OPSYS} == "NetBSD"
+. if ${OBJECT_FMT} == "ELF"
LINK_LIBGCC_LDFLAGS= ${WHOLE_ARCHIVE_FLAG} -lgcc ${NO_WHOLE_ARCHIVE_FLAG}
-.endif
-
+MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}"
# 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)
+. if defined(USE_GCC3)
USE_GCC_SHLIB= # defined
LINK_LIBGCC_LDFLAGS+= -lgcc_s
+. endif
+. endif
.endif
-MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}"
-
# Use operating system's db1 functions (where available)
USE_DB185= # defined