summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2017-01-03 22:46:00 +0000
committerbdrewery <bdrewery@FreeBSD.org>2017-01-03 22:46:00 +0000
commitccb2e383f600082671d406147d505c99aae56811 (patch)
tree9e9b8617a91248e440d8741981457bb192ac006e /gnu
parent56109beb173bca8390c59cd62c03ac23eade1792 (diff)
downloadFreeBSD-src-ccb2e383f600082671d406147d505c99aae56811.zip
FreeBSD-src-ccb2e383f600082671d406147d505c99aae56811.tar.gz
MFC r305145:
DIRDEPS_BUILD: Avoid cyclic dependency with libc++.
Diffstat (limited to 'gnu')
-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 64baf1b..0a53d2e 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
OpenPOWER on IntegriCloud