diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2017-01-03 22:46:00 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2017-01-03 22:46:00 +0000 |
commit | ccb2e383f600082671d406147d505c99aae56811 (patch) | |
tree | 9e9b8617a91248e440d8741981457bb192ac006e /gnu | |
parent | 56109beb173bca8390c59cd62c03ac23eade1792 (diff) | |
download | FreeBSD-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/Makefile | 4 |
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 |