From de0fbc4dbca2c18bcb7bca1f1f2fe56fcf5ba2a8 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 24 Mar 2016 21:48:10 +0000 Subject: [PATCH] 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 --- lib/csu/powerpc64/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/csu/powerpc64/Makefile b/lib/csu/powerpc64/Makefile index 09b643e1b3ad..a97ef1ef3e40 100644 --- a/lib/csu/powerpc64/Makefile +++ b/lib/csu/powerpc64/Makefile @@ -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 +.if ${COMPILER_TYPE} != "gcc" CC:= gcc COMPILER_TYPE:= gcc +.endif FILES= ${OBJS} FILESMODE= ${LIBMODE}