aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
Diffstat (limited to 'kerl')
-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