aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2011-03-07 15:32:05 +0800
committererwin <erwin@FreeBSD.org>2011-03-07 15:32:05 +0800
commit22ae57eeef1685f7fcd79e98abacd005e08258fb (patch)
tree08dd1e2a17ef19631bae3abcf3ea12996f63b1e0 /Mk
parentf9ac01532755910f14b352f14fb242050980dcd0 (diff)
downloadfreebsd-ports-graphics-22ae57eeef1685f7fcd79e98abacd005e08258fb.tar.gz
freebsd-ports-graphics-22ae57eeef1685f7fcd79e98abacd005e08258fb.tar.zst
freebsd-ports-graphics-22ae57eeef1685f7fcd79e98abacd005e08258fb.zip
Pass CPPFLAGS to MAKE_ENV and CONFIGURE_ENV
PR: 153625 Submitted by: gerald
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index cd6322830b1..b09c8eb94e7 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2276,8 +2276,9 @@ MAKEFILE?= Makefile
MAKE_ENV+= PREFIX=${PREFIX} \
LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" \
- CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
- CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ CC="${CC}" CFLAGS="${CFLAGS}" \
+ CPP="${CPP}" CPPFLAGS="${CPPFLAGS}" \
+ CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
MANPREFIX="${MANPREFIX}"
# Add -fno-strict-aliasing to CFLAGS with optimization level -O2 or higher.
@@ -3777,7 +3778,7 @@ do-configure:
@(cd ${CONFIGURE_WRKSRC} && \
${SET_LATE_CONFIGURE_ARGS} \
if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
- CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
INSTALL="/usr/bin/install -c ${_BINOWNGRP}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_LIB="${INSTALL_LIB}" \