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}
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to