summaryrefslogtreecommitdiff
path: root/www/apache
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-05-31 14:31:14 +0000
committergrant <grant@pkgsrc.org>2003-05-31 14:31:14 +0000
commit47115b7c1a395f607e3052e77edafae6dd104c85 (patch)
treef2ee665fd27c1fc07ab4d4865175dc9acff06f7b /www/apache
parent6c83e0d86235259d0d9191391a33d5b5153b4f2a (diff)
downloadpkgsrc-47115b7c1a395f607e3052e77edafae6dd104c85.tar.gz
make sure modules are built with the correct version of gcc.
Diffstat (limited to 'www/apache')
-rw-r--r--www/apache/module.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/www/apache/module.mk b/www/apache/module.mk
index e4661e235b7..6159399b67b 100644
--- a/www/apache/module.mk
+++ b/www/apache/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.5 2003/02/17 22:33:55 grant Exp $
+# $NetBSD: module.mk,v 1.6 2003/05/31 14:31:14 grant Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install apache modules.
@@ -26,13 +26,18 @@ APACHE_MODULE= # defined
.include "../../www/apache/buildlink2.mk"
+# ensure apxs finds the right version of gcc.
+.include "../../mk/gcc.buildlink2.mk"
+
APACHE_MODULE_SRCDIR?= ${WRKSRC}
APACHE_MODULE_SRC?= *.c
apache-module-build:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- cd ${APACHE_MODULE_SRCDIR} && ${APXS} ${CPPFLAGS} ${LDFLAGS} \
- -c -o ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC}
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ cd ${APACHE_MODULE_SRCDIR} && \
+ ${SETENV} PATH=${PATH} \
+ ${APXS} ${CPPFLAGS} ${LDFLAGS} \
+ -c -o ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC}
do-build: apache-module-build
${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}