aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-10-26 19:28:20 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-10-26 19:28:20 +0000
commit6aa2fe8969e275faa2fbd6e80ebfb91ac2bddc40 (patch)
tree1c767a85e94521197eda5446f5c29014a8454343
parent86a1e16def70706fdf31b0d743e95a6ab18bafe2 (diff)
downloadsrc-6aa2fe8969e275faa2fbd6e80ebfb91ac2bddc40.tar.gz
src-6aa2fe8969e275faa2fbd6e80ebfb91ac2bddc40.zip
Add a note about DEPFLAGS which is currently a hack around not properly passing
CXXFLAGS to sub-makes. The bad passing also causes bsd.dep.mk's logic to selectively pull only some flags from C[XX]FLAGS to not apply which can be seen with '-L' being passed to mkdep when using an external compiler.
Notes
Notes: svn path=/head/; revision=290019
-rw-r--r--Makefile.inc13
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index b06c9b7964d3..275b8a343e71 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -398,6 +398,9 @@ TARGET_ABI= gnueabi
.if defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc
XCFLAGS+= -isystem ${WORLDTMP}/usr/include -L${WORLDTMP}/usr/lib
XCXXFLAGS+= -I${WORLDTMP}/usr/include/c++/v1 -std=gnu++11 -L${WORLDTMP}/../lib/libc++
+# XXX: DEPFLAGS is a workaround for not properly passing CXXFLAGS to sub-makes
+# due to CXX="${XCXX} ${XCXXFLAGS}". bsd.dep.mk does use CXXFLAGS when
+# building C++ files so this can come out if passing CXXFLAGS down is fixed.
DEPFLAGS+= -I${WORLDTMP}/usr/include/c++/v1
.else
TARGET_ABI?= unknown