diff options
Diffstat (limited to 'www/apache')
-rw-r--r-- | www/apache/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile index 089d785384a..5dc117fdaaa 100644 --- a/www/apache/Makefile +++ b/www/apache/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.116 2002/12/19 14:08:34 grant Exp $ +# $NetBSD: Makefile,v 1.117 2002/12/22 13:04:39 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). @@ -115,14 +115,22 @@ LINK_LIBGCC_LDFLAGS= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}" .endif +# Use operating system's db1 functions (where available) +USE_DB185= # defined + .include "../../databases/db/buildlink2.mk" BUILDLINK_DEPENDS.db= db>=2.7.7 + +.if defined(BUILDLINK_PREFIX.db_DEFAULT) CONFIGURE_ENV+= INCLUDES="${BUILDLINK_CPPFLAGS.db}" -CONFIGURE_ENV+= LIBS="-ldb2" -.if ${OPSYS} == "SunOS" -LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib +# on Solaris, we also need libdbm +. if ${OPSYS} == "SunOS" CONFIGURE_ENV+= LIBS="-ldbm -ldb2" +LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib +. else +CONFIGURE_ENV+= LIBS="-ldb2" +. endif .endif BUILD_DEFS+= APACHE_CUSTOM_CFLAGS |