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}