From: Dirk Vogt Date: Tue, 1 May 2012 14:57:11 +0000 (+0200) Subject: Fix compiler check X-Git-Tag: v3.2.1~524 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=7da8d39c066d10e2407f1828802945763279d31a;p=minix.git Fix compiler check --- 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