summaryrefslogtreecommitdiffstats
path: root/lib/libc++
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-05-27 20:45:32 +0000
committerdim <dim@FreeBSD.org>2016-05-27 20:45:32 +0000
commitb4330c94fcd0e417cbe1376a4acbe3838103ae18 (patch)
treee86f0e554eb9150430ad81a03f17ee03b44d37f1 /lib/libc++
parent9c0f0d8d1f427a1b3354d3c1b43da9b5b852fffe (diff)
downloadFreeBSD-src-b4330c94fcd0e417cbe1376a4acbe3838103ae18.zip
FreeBSD-src-b4330c94fcd0e417cbe1376a4acbe3838103ae18.tar.gz
After r300770, for libc++ and libcxxrt, use -isystem instead of -I.
This should fix builds with external gcc toolchains from ports, which also use -isystem to work around problems with gcc's --sysroot implementation. Thanks to Bryan Drewery for this workaround.
Diffstat (limited to 'lib/libc++')
-rw-r--r--lib/libc++/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile
index 984e70b..5db0934 100644
--- a/lib/libc++/Makefile
+++ b/lib/libc++/Makefile
@@ -63,7 +63,7 @@ cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA
.endfor
WARNS= 0
-CFLAGS+= -I${HDRDIR} -I${_LIBCXXRTDIR} -nostdinc++ -nostdlib -DLIBCXXRT
+CFLAGS+= -isystem ${HDRDIR} -isystem ${_LIBCXXRTDIR} -nostdinc++ -nostdlib -DLIBCXXRT
.if empty(CXXFLAGS:M-std=*)
CXXFLAGS+= -std=c++11
.endif
OpenPOWER on IntegriCloud