diff options
author | grant <grant> | 2002-12-19 14:08:34 +0000 |
---|---|---|
committer | grant <grant> | 2002-12-19 14:08:34 +0000 |
commit | 56b5ba10aabd0dc87227827f9879ca081a70d8b1 (patch) | |
tree | 21a9be4a2c86db7d31738399b2ec3796253e7e14 /www/apache/Makefile | |
parent | ffe1ac5f71ab25ff9be4ecd8633c102f92920675 (diff) | |
download | pkgsrc-56b5ba10aabd0dc87227827f9879ca081a70d8b1.tar.gz |
Tidy up conditional use of databases/db/buildlink2.mk.
Fixes build problem on Solaris.
Diffstat (limited to 'www/apache/Makefile')
-rw-r--r-- | www/apache/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile index 81459c1ab9a..089d785384a 100644 --- a/www/apache/Makefile +++ b/www/apache/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.115 2002/11/18 10:40:12 tron Exp $ +# $NetBSD: Makefile,v 1.116 2002/12/19 14:08:34 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,12 +115,14 @@ LINK_LIBGCC_LDFLAGS= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}" .endif -.if (${OPSYS} == "SunOS") -LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib +.include "../../databases/db/buildlink2.mk" +BUILDLINK_DEPENDS.db= db>=2.7.7 CONFIGURE_ENV+= INCLUDES="${BUILDLINK_CPPFLAGS.db}" +CONFIGURE_ENV+= LIBS="-ldb2" + +.if ${OPSYS} == "SunOS" +LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib CONFIGURE_ENV+= LIBS="-ldbm -ldb2" -BUILDLINK_DEPENDS.db= db>=2.7.7 -. include "../../databases/db/buildlink2.mk" .endif BUILD_DEFS+= APACHE_CUSTOM_CFLAGS |