summaryrefslogtreecommitdiffstats
path: root/lib/libcxxrt
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/libcxxrt
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/libcxxrt')
-rw-r--r--lib/libcxxrt/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcxxrt/Makefile b/lib/libcxxrt/Makefile
index 15420a6..f2efe8d 100644
--- a/lib/libcxxrt/Makefile
+++ b/lib/libcxxrt/Makefile
@@ -21,7 +21,7 @@ SRCS+= libelftc_dem_gnu3.c\
guard.cc
WARNS= 0
-CFLAGS+= -I${SRCDIR} -nostdinc++
+CFLAGS+= -isystem ${SRCDIR} -nostdinc++
.if empty(CXXFLAGS:M-std=*)
CXXFLAGS+= -std=c++11
.endif
OpenPOWER on IntegriCloud