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.
This commit is contained in:
parent
1e45d04b7b
commit
09210a281c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300873
@ -63,7 +63,7 @@ cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA
|
|||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
CFLAGS+= -I${HDRDIR} -I${_LIBCXXRTDIR} -nostdinc++ -nostdlib -DLIBCXXRT
|
CFLAGS+= -isystem ${HDRDIR} -isystem ${_LIBCXXRTDIR} -nostdinc++ -nostdlib -DLIBCXXRT
|
||||||
.if empty(CXXFLAGS:M-std=*)
|
.if empty(CXXFLAGS:M-std=*)
|
||||||
CXXFLAGS+= -std=c++11
|
CXXFLAGS+= -std=c++11
|
||||||
.endif
|
.endif
|
||||||
|
@ -21,7 +21,7 @@ SRCS+= libelftc_dem_gnu3.c\
|
|||||||
guard.cc
|
guard.cc
|
||||||
|
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
CFLAGS+= -I${SRCDIR} -nostdinc++
|
CFLAGS+= -isystem ${SRCDIR} -nostdinc++
|
||||||
.if empty(CXXFLAGS:M-std=*)
|
.if empty(CXXFLAGS:M-std=*)
|
||||||
CXXFLAGS+= -std=c++11
|
CXXFLAGS+= -std=c++11
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user