aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYurii Rashkovskii <[email protected]>2011-10-17 11:45:36 -0700
committerYurii Rashkovskii <[email protected]>2011-10-17 11:45:36 -0700
commitc753a124b880f0521b8d360d8dd62e104956649d (patch)
tree7471dd8d1cfb54006f837d3bfbf9ce2a72dee0a1
parent66e1f1bd30961d0716eeff0f69483d8ca44fd03f (diff)
parent963a0c5a8d92b8fb0a9b3a38766a280b52445285 (diff)
downloadkerl-c753a124b880f0521b8d360d8dd62e104956649d.tar.gz
kerl-c753a124b880f0521b8d360d8dd62e104956649d.tar.bz2
kerl-c753a124b880f0521b8d360d8dd62e104956649d.zip
Merge pull request #13 from randysecrist/master
XCode 4.2 compatibility
-rwxr-xr-xkerl6
1 files changed, 3 insertions, 3 deletions
diff --git a/kerl b/kerl
index ca6e043..56852c3 100755
--- a/kerl
+++ b/kerl
@@ -292,12 +292,12 @@ do_build()
Darwin)
if [ `gcc --version | grep llvm | wc -l` = "1" ]; then
if lion_support $1; then
- true
+ KERL_CONFIGURE_OPTIONS="CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS"
else
- if [ -x `which gcc-4.2` ]; then
+ if [ -x "`which gcc-4.2`" ]; then
KERL_CONFIGURE_OPTIONS="CC=gcc-4.2 $KERL_CONFIGURE_OPTIONS"
else
- KERL_CONFIGURE_OPTIONS="CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS"
+ KERL_CONFIGURE_OPTIONS="CC=llvm-gcc-4.2 CFLAGS=-O0 $KERL_CONFIGURE_OPTIONS"
fi
fi
fi