summaryrefslogtreecommitdiffstats
path: root/lib/csu/powerpc64/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/powerpc64/Makefile')
-rw-r--r--lib/csu/powerpc64/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/csu/powerpc64/Makefile b/lib/csu/powerpc64/Makefile
index 09b643e..a97ef1e 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 <bsd.compiler.mk>
+.if ${COMPILER_TYPE} != "gcc"
CC:= gcc
COMPILER_TYPE:= gcc
+.endif
FILES= ${OBJS}
FILESMODE= ${LIBMODE}
OpenPOWER on IntegriCloud