Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2016 21:48:10 +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: r297249 - head/lib/csu/powerpc64
Message-ID:  <201603242148.u2OLmAT7064724@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Thu Mar 24 21:48:10 2016
New Revision: 297249
URL: https://svnweb.freebsd.org/changeset/base/297249

Log:
  Don't reset CC away from full-pathed gcc.
  
  This was breaking the build when using CROSS_TOOLCHAIN=powerpc64-gcc
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/lib/csu/powerpc64/Makefile

Modified: head/lib/csu/powerpc64/Makefile
==============================================================================
--- head/lib/csu/powerpc64/Makefile	Thu Mar 24 21:48:01 2016	(r297248)
+++ head/lib/csu/powerpc64/Makefile	Thu Mar 24 21:48:10 2016	(r297249)
@@ -13,8 +13,11 @@ CFLAGS+=	-I${.CURDIR}/../common \
 # clang doesn't support -mlongcall, and testing shows a clang linked with a
 # clang-built csu segfaults, this must currently be compiled with gcc.  Once
 # clang supports -mlongcall, or we get a fixed ld, this can be revisited.
+.include <bsd.compiler.mk>
+.if ${COMPILER_TYPE} != "gcc"
 CC:=		gcc
 COMPILER_TYPE:=	gcc
+.endif
 
 FILES=		${OBJS}
 FILESMODE=	${LIBMODE}



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