diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-06-29 01:50:30 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-06-29 01:50:30 +0000 |
commit | 1e1f5317b73b45be67126beb4388fb4e8d6a6649 (patch) | |
tree | 45578dd696c1591e61bc21c9e5c4a68a08c17700 /Makefile.inc1 | |
parent | 8c8129e2bd32aa12f7531eeb6dd4a77fe81b715e (diff) | |
download | FreeBSD-src-1e1f5317b73b45be67126beb4388fb4e8d6a6649.zip FreeBSD-src-1e1f5317b73b45be67126beb4388fb4e8d6a6649.tar.gz |
WITH_SYSTEM_COMPILER: Avoid using GCC4.8+ logic on native GCC4.2 platforms.
As the XXX notes, these should really be checking MK_GNUCXX since there is
already a version check in share/mk/src.opts.mk to disable it. Fixing that
here is more complex though. This could also be using X_COMPILER_FEATURES
but uses X_COMPILER_VERSION to keep in sync with the src.opts.mk logic.
Tested by: andreast
Sponsored by: EMC / Isilon Storage Division
Approved by: re (gjb)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index ab028a6..ca84c60 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -549,8 +549,10 @@ TARGET_ABI= gnueabi XCFLAGS+= -isystem ${WORLDTMP}/usr/include -L${WORLDTMP}/usr/lib # Force using libc++ for external GCC. # XXX: This should be checking MK_GNUCXX == no +.if ${X_COMPILER_VERSION} >= 40800 XCXXFLAGS+= -isystem ${WORLDTMP}/usr/include/c++/v1 -std=c++11 \ -nostdinc++ -L${WORLDTMP}/../lib/libc++ +.endif .else TARGET_ABI?= unknown TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0 |