]> Zhao Yanbai Git Server - minix.git/commitdiff
clang - let buildsystem figure out how to invoke AR, etc., for clang too.
authorBen Gras <ben@minix3.org>
Tue, 22 Feb 2011 01:08:29 +0000 (01:08 +0000)
committerBen Gras <ben@minix3.org>
Tue, 22 Feb 2011 01:08:29 +0000 (01:08 +0000)
lib/clang_build.sh
share/mk/sys.mk

index 15939133fc434cc046da57179e73845a9dbd8b51..f29eab065e9432751ba825f7b66ea0a249df3c75 100755 (executable)
@@ -2,11 +2,6 @@
 
 export CC=clang
 export COMPILER_TYPE=gnu
-export LD="i386-pc-minix3-ld"
-export AR="i386-pc-minix3-ar"
-export OBJCOPY="i386-pc-minix3-objcopy"
-export RANLIB="i386-pc-minix3-ranlib"
-export MAKEOBJDIR=obj-gnu
 export PATH=$PATH:/usr/pkg/bin:/usr/gnu_cross/bin
 export MAKEOBJDIR=obj-elf-clang
 
index 1488fb2cb9d1135aa93aa2bccd9c5715da7fff98..c5694e31cc8d8bd7fa4e941f040292e332c907ee 100644 (file)
@@ -230,10 +230,7 @@ COMPILER_TYPE=ack
 .elif !empty(CC:Mgcc)
 COMPILER_TYPE=gnu
 AR=ar
-.elif !empty(CC:Mclang)
-COMPILER_TYPE=gnu
-AR=ar
-.elif !empty(CC:Mi386-pc-minix3-gcc)
+.elif !empty(CC:Mi386-pc-minix3-gcc) || !empty(CC:Mclang)
 COMPILER_TYPE=gnu
 AR=i386-pc-minix3-ar
 LD=i386-pc-minix3-ld