aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl9
1 files changed, 9 insertions, 0 deletions
diff --git a/kerl b/kerl
index 000a09a..e0cf1f3 100755
--- a/kerl
+++ b/kerl
@@ -543,6 +543,15 @@ _do_build()
Darwin)
OSVERSION=`uname -r`
RELVERSION=`get_otp_version "$1"`
+
+ # Ensure that the --enable-darwin-64bit flag is set on all macOS
+ # That way even on older Erlangs we get 64 bit Erlang builds
+ # macOS has been mandatory 64 bit for a while
+ echo -n $KERL_CONFIGURE_OPTIONS | grep "darwin-64bit" 1>/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ KERL_CONFIGURE_OPTIONS = "$KERL_CONFIGURE_OPTIONS --enable-darwin-64bit"
+ fi
+
case "$OSVERSION" in
16*|15*)
echo -n $KERL_CONFIGURE_OPTIONS | grep "ssl" 1>/dev/null 2>&1