Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 23:03:29 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300885 - head
Message-ID:  <201605272303.u4RN3Tx6099057@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri May 27 23:03:28 2016
New Revision: 300885
URL: https://svnweb.freebsd.org/changeset/base/300885

Log:
  Libcompat: Only pass -isystem =/usr/include for external GCC.
  
  This is the same as the main build logic.  GCC with a cross-compiler
  requires using -isystem to =/usr/include to get the search order
  correct.
  
  Reported by:	dim, asomers
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/Makefile.libcompat

Modified: head/Makefile.libcompat
==============================================================================
--- head/Makefile.libcompat	Fri May 27 22:56:00 2016	(r300884)
+++ head/Makefile.libcompat	Fri May 27 23:03:28 2016	(r300885)
@@ -72,10 +72,9 @@ LIBCOMPATCFLAGS+=	${LIBCOMPATCPUFLAGS} \
 # -B is needed to find /usr/lib32/crti.o for GCC and /usr/libsoft/crti.o for
 # Clang/GCC.
 LIBCOMPATCFLAGS+=	-B${LIBCOMPATTMP}/usr/lib${libcompat}
+.if defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc
 # GCC requires -isystem when using a cross-compiler.
 LIBCOMPATCFLAGS+=	-isystem ${LIBCOMPATTMP}/usr/include
-
-.if defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc
 # Force using libc++ for external GCC.
 LIBCOMPATCXXFLAGS+=	-isystem ${LIBCOMPATTMP}/usr/include/c++/v1 -std=c++11 \
 			-nostdinc++ -L${LIBCOMPAT_OBJTREE}${.CURDIR}/lib/libc++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605272303.u4RN3Tx6099057>