summaryrefslogtreecommitdiff
path: root/www/apache
diff options
context:
space:
mode:
authorgrant <grant>2003-05-31 14:31:14 +0000
committergrant <grant>2003-05-31 14:31:14 +0000
commitdcfd9998a1471d259c8af0c0fe1c78ec267d55da (patch)
treef2ee665fd27c1fc07ab4d4865175dc9acff06f7b /www/apache
parent901c0eb2f10bd96b12d9ee59bbe4f7091476b75b (diff)
downloadpkgsrc-dcfd9998a1471d259c8af0c0fe1c78ec267d55da.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}