From 7da8d39c066d10e2407f1828802945763279d31a Mon Sep 17 00:00:00 2001 From: Dirk Vogt Date: Tue, 1 May 2012 16:57:11 +0200 Subject: [PATCH] Fix compiler check --- share/mk/minix.service.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/mk/minix.service.mk b/share/mk/minix.service.mk index 647124794..d9badbf57 100644 --- a/share/mk/minix.service.mk +++ b/share/mk/minix.service.mk @@ -1,9 +1,9 @@ # MINIX-specific servers/drivers options .include -.if ${CC} == "gcc" +.if !empty(CC:M*gcc) LDADD+= -nodefaultlibs -lgcc -lsys -lgcc -lminc -.elif ${CC} == "clang" +.elif !empty(CC:M*clang) LDADD+= -nodefaultlibs -L/usr/pkg/compiler-rt/lib -lCompilerRT-Generic -lsys -lCompilerRT-Generic -lminc .endif -- 2.44.0