Fix build problem on Solaris with PKGSRC_COMPILER=sunpro and 'db4'

in PKG_OPTIONS.apr-util/PKG_DEFAULT_OPTIONS.

USE_LANGUAGES should be set before including mk/apache.mk as it
(may) ends up including mk/compiler.mk.
This last file sets a default value of 'c' to USE_LANGUAGES and
then uses it to set PKG_CC, PKG_CXX and PKG_FC to "fail wrappers".
Hence the C++ compiler command ends up being wrapped by a "fail
script" thus breaks the build.
This commit is contained in:
seb 2009-08-31 07:19:44 +00:00
parent 83599cd46c
commit f314c85754

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2009/07/17 18:00:23 adrianp Exp $
# $NetBSD: Makefile,v 1.15 2009/08/31 07:19:44 seb Exp $
DISTNAME= modsecurity-apache_2.5.9
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME:S/apache_//}
@ -10,6 +10,7 @@ HOMEPAGE= http://www.modsecurity.org/
COMMENT= Intrusion detection and prevention engine for web applications
PKG_APACHE_ACCEPTED= apache2 apache22
USE_LANGUAGES+= c++ c
.include "../../mk/apache.mk"
.include "options.mk"
@ -18,7 +19,6 @@ GNU_CONFIGURE= YES
USE_TOOLS+= pax
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/apache2
USE_LANGUAGES+= c++ c
CONFIGURE_ARGS+= --with-apxs=${PREFIX}/sbin/apxs
CONFIGURE_ARGS+= --with-pcre=${PREFIX}