aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe DeVivo <[email protected]>2017-09-28 06:49:42 -0700
committerJoe DeVivo <[email protected]>2017-09-28 06:50:43 -0700
commit1d01b3a696c0cd35b1bec9dbc31bb7b0174a9924 (patch)
treefcb6af5105550377168da37cc66b555ddad24e94
parentd588065a95c356d3e221b208355ba3ec7d6a9781 (diff)
downloadkerl-1d01b3a696c0cd35b1bec9dbc31bb7b0174a9924.tar.gz
kerl-1d01b3a696c0cd35b1bec9dbc31bb7b0174a9924.tar.bz2
kerl-1d01b3a696c0cd35b1bec9dbc31bb7b0174a9924.zip
Hardcoded CC and DED_LD to `clang` for High Sierra only
-rwxr-xr-xkerl4
1 files changed, 2 insertions, 2 deletions
diff --git a/kerl b/kerl
index 8e92a9a..561d727 100755
--- a/kerl
+++ b/kerl
@@ -542,7 +542,7 @@ _flags(){
host=$(./erts/autoconf/config.guess)
DARWIN_VERSION=$(uname -r | sed $SED_OPT -e 's/R?([0-9]{1,2}).+/\1/')
if [ "$DARWIN_VERSION" -ge 17 ]; then
- CFLAGS="$CFLAGS" DED_LD="$CC" DED_LDFLAGS="-m64 -bundle -bundle_loader ${ERL_TOP}/bin/$host/beam.smp" $@
+ CFLAGS="$CFLAGS" DED_LD="clang" CC="clang" DED_LDFLAGS="-m64 -bundle -bundle_loader ${ERL_TOP}/bin/$host/beam.smp" $@
else
CFLAGS="$CFLAGS" $@
fi
@@ -600,7 +600,7 @@ _do_build()
ERL_TOP="$KERL_BUILD_DIR/$2/otp_src_$1"
cd "$ERL_TOP" || exit 1
LOGFILE="$KERL_BUILD_DIR/$2/otp_build_$1.log"
-
+
# Check to see if configuration options need to be stored or have changed
TMPOPT="/tmp/kerloptions.$$"
echo "$CFLAGS" > "$TMPOPT"