svn commit: r198248 - projects/clangbsd

Roman Divacky rdivacky at FreeBSD.org
Mon Oct 19 20:11:05 UTC 2009


Author: rdivacky
Date: Mon Oct 19 20:11:05 2009
New Revision: 198248
URL: http://svn.freebsd.org/changeset/base/198248

Log:
  Define CC/CXX for world stage as $CC/$CXX -isystem. This way we dont have to
  alter hardcoded paths in the compiler (like in gcc) yet it still picks up
  the right includes. This should work for in-tree (ie. modified with altered
  paths) gcc.
  
  Clue provided by:	kan

Modified:
  projects/clangbsd/Makefile.inc1

Modified: projects/clangbsd/Makefile.inc1
==============================================================================
--- projects/clangbsd/Makefile.inc1	Mon Oct 19 19:45:57 2009	(r198247)
+++ projects/clangbsd/Makefile.inc1	Mon Oct 19 20:11:05 2009	(r198248)
@@ -256,7 +256,9 @@ WMAKEENV=	${CROSSENV} \
 		_SHLIBDIRPREFIX=${WORLDTMP} \
 		VERSION="${VERSION}" \
 		INSTALL="sh ${.CURDIR}/tools/install.sh" \
-		PATH=${TMPPATH}
+		PATH=${TMPPATH} \
+		CC="${CC} -isystem ${WORLDTMP}/usr/include" \
+		CXX="${CXX} -isystem ${WORLDTMP}/include/c++/4.2 -isystem ${WORLDTMP}/include/c++/4.2/backward"
 .if ${MK_CDDL} == "no" || defined(NO_CTF)
 WMAKEENV+=	NO_CTF=1
 .endif


More information about the svn-src-projects mailing list