]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix compiler check
authorDirk Vogt <dirk@minix3.org>
Tue, 1 May 2012 14:57:11 +0000 (16:57 +0200)
committerThomas Veerman <thomas@minix3.org>
Mon, 18 Jun 2012 10:53:27 +0000 (10:53 +0000)
share/mk/minix.service.mk

index 647124794871876c3bb7f1910a1aa791e8681c63..d9badbf57f0a8d0b72e2345915cd3bdcf4418682 100644 (file)
@@ -1,9 +1,9 @@
 # MINIX-specific servers/drivers options
 .include <bsd.own.mk>
 
-.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