mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
X_COMPILER_* may not be defined.
Sponsored by: Dell EMC
This commit is contained in:
parent
a94a2945be
commit
1c0cac23cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328347
|
@ -637,7 +637,8 @@ XCFLAGS+= -isystem ${WORLDTMP}/usr/include -L${WORLDTMP}/usr/lib
|
||||||
# combined with --sysroot.
|
# combined with --sysroot.
|
||||||
XCFLAGS+= -B${WORLDTMP}/usr/lib
|
XCFLAGS+= -B${WORLDTMP}/usr/lib
|
||||||
# Force using libc++ for external GCC.
|
# Force using libc++ for external GCC.
|
||||||
.if ${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800
|
.if defined(X_COMPILER_TYPE) && \
|
||||||
|
${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800
|
||||||
XCXXFLAGS+= -isystem ${WORLDTMP}/usr/include/c++/v1 -std=c++11 \
|
XCXXFLAGS+= -isystem ${WORLDTMP}/usr/include/c++/v1 -std=c++11 \
|
||||||
-nostdinc++
|
-nostdinc++
|
||||||
.endif
|
.endif
|
||||||
|
@ -2880,7 +2881,8 @@ CD2CFLAGS+= -isystem ${XDDESTDIR}/usr/include -L${XDDESTDIR}/usr/lib
|
||||||
# combined with --sysroot.
|
# combined with --sysroot.
|
||||||
CD2CFLAGS+= -B${XDDESTDIR}/usr/lib
|
CD2CFLAGS+= -B${XDDESTDIR}/usr/lib
|
||||||
# Force using libc++ for external GCC.
|
# Force using libc++ for external GCC.
|
||||||
.if ${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800
|
.if defined(X_COMPILER_TYPE) && \
|
||||||
|
${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800
|
||||||
CD2CXXFLAGS+= -isystem ${XDDESTDIR}/usr/include/c++/v1 -std=c++11 \
|
CD2CXXFLAGS+= -isystem ${XDDESTDIR}/usr/include/c++/v1 -std=c++11 \
|
||||||
-nostdinc++
|
-nostdinc++
|
||||||
.endif
|
.endif
|
||||||
|
|
|
@ -108,7 +108,8 @@ LIBCOMPATCFLAGS+= -B${LIBCOMPATTMP}/usr/lib${libcompat}
|
||||||
# sysroot path which --sysroot does not actually do for headers.
|
# sysroot path which --sysroot does not actually do for headers.
|
||||||
LIBCOMPATCFLAGS+= -isystem ${LIBCOMPATTMP}/usr/include
|
LIBCOMPATCFLAGS+= -isystem ${LIBCOMPATTMP}/usr/include
|
||||||
# Force using libc++ for external GCC.
|
# Force using libc++ for external GCC.
|
||||||
.if ${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800 && \
|
.if defined(X_COMPILER_TYPE) && \
|
||||||
|
${X_COMPILER_TYPE} == gcc && ${X_COMPILER_VERSION} >= 40800 && \
|
||||||
(${MK_CLANG_BOOTSTRAP} == "no" && ${MK_GCC_BOOTSTRAP} == "no")
|
(${MK_CLANG_BOOTSTRAP} == "no" && ${MK_GCC_BOOTSTRAP} == "no")
|
||||||
LIBCOMPATCXXFLAGS+= -isystem ${LIBCOMPATTMP}/usr/include/c++/v1 -std=c++11 \
|
LIBCOMPATCXXFLAGS+= -isystem ${LIBCOMPATTMP}/usr/include/c++/v1 -std=c++11 \
|
||||||
-nostdinc++
|
-nostdinc++
|
||||||
|
|
Loading…
Reference in a new issue