diff options
author | dim <dim@FreeBSD.org> | 2016-05-27 20:45:32 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-05-27 20:45:32 +0000 |
commit | b4330c94fcd0e417cbe1376a4acbe3838103ae18 (patch) | |
tree | e86f0e554eb9150430ad81a03f17ee03b44d37f1 /lib/libcxxrt | |
parent | 9c0f0d8d1f427a1b3354d3c1b43da9b5b852fffe (diff) | |
download | FreeBSD-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/Makefile | 2 |
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 |