Fix build of contribs on Windows.
authorStas Boukarev <stassats@gmail.com>
Sat, 28 Jul 2012 15:15:57 +0000 (15:15 +0000)
committerStas Boukarev <stassats@gmail.com>
Sat, 28 Jul 2012 15:15:57 +0000 (15:15 +0000)
Set CC variable in make-target-contrib.sh, not in asdf-module.mk, Make
defaults CC to "cc" making it impossible to conditionally set CC to gcc
if it's unset.

contrib/asdf-module.mk
make-target-contrib.sh

index ddce36b..3f88bdb 100644 (file)
@@ -1,4 +1,3 @@
-CC?=gcc
 
 # We need to extend flags to the C compiler and the linker
 # here. sb-posix, sb-grovel, and sb-bsd-sockets depends upon these
index 22fe7e5..c171111 100644 (file)
@@ -18,7 +18,8 @@ echo //entering make-target-contrib.sh
 
 LANG=C
 LC_ALL=C
-export LANG LC_ALL
+CC=${CC:-gcc}
+export CC LANG LC_ALL
 
 # Load our build configuration
 . output/build-config