svn commit: r304005 - head/sys/conf
Bryan Drewery
bdrewery at FreeBSD.org
Fri Aug 12 11:06:55 UTC 2016
Author: bdrewery
Date: Fri Aug 12 11:06:54 2016
New Revision: 304005
URL: https://svnweb.freebsd.org/changeset/base/304005
Log:
PORTS_MODULES: Don't leak in CC/CXX/CPP.
These may have ccache in them or -target/--sysroot from external
compiler or SYSTEM_COMPILER support. Many ports do not support
a CC with spaces in it, such as emulators/virtualbox-ose-kmod.
Passing --sysroot to ports makes no sense as ports doesn't support
--sysroot currently.
If these variables need to be overridden for ports then they can
be set in make.conf or passed as make arguments.
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/conf/kern.post.mk
Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk Fri Aug 12 10:29:34 2016 (r304004)
+++ head/sys/conf/kern.post.mk Fri Aug 12 11:06:54 2016 (r304005)
@@ -65,6 +65,10 @@ OSRELDATE!= awk '/^\#define[[:space:]]*_
# Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
WRKDIRPREFIX?= ${MAKEOBJDIRPREFIX}${SRC_BASE}/sys/${KERNCONF}
PORTSMODULESENV=\
+ env \
+ -u CC \
+ -u CXX \
+ -u CPP \
PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
SRC_BASE=${SRC_BASE} \
OSVERSION=${OSRELDATE} \
More information about the svn-src-head
mailing list