summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-08-31 19:30:00 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-08-31 19:30:00 +0000
commit790ba09ec61dd78b46bb2175eba0e1db198eaf6e (patch)
treef12040a35778928c69ba74ed5c1a40ef0c74e63f
parente1ec67bbc99a3c01ed02f565483cef06ccb11166 (diff)
downloadsrc-test2-790ba09ec61dd78b46bb2175eba0e1db198eaf6e.tar.gz
src-test2-790ba09ec61dd78b46bb2175eba0e1db198eaf6e.zip
Notes
-rw-r--r--gnu/lib/libgcc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index a47bd3389420..d9837cc3a7cd 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -95,6 +95,10 @@ CXXFLAGS+= -std=c++11
.endif
CXXFLAGS+= -fno-rtti
STATIC_CXXFLAGS+= -fvisibility=hidden -fPIC
+.if ${MK_DIRDEPS_BUILD} == "yes"
+# Avoid dependency on lib/libc++
+CFLAGS+= -I${SRCTOP}/contrib/libc++/include
+.endif
.else # MK_LLVM_LIBUNWIND