Commit 07ecc461 authored by Josh de Kock's avatar Josh de Kock

configure: fix clang on macOS 10.15

Works around a bug in the newer Xcode 11's clang with -fstack-check
emitting bad code with misaligned call instructions.

This fixes Trac #8073
parent 5216edbc
...@@ -5359,6 +5359,11 @@ case $target_os in ...@@ -5359,6 +5359,11 @@ case $target_os in
fi fi
version_script='-exported_symbols_list' version_script='-exported_symbols_list'
VERSION_SCRIPT_POSTPROCESS_CMD='tr " " "\n" | sed -n /global:/,/local:/p | grep ";" | tr ";" "\n" | sed -E "s/(.+)/_\1/g" | sed -E "s/(.+[^*])$$$$/\1*/"' VERSION_SCRIPT_POSTPROCESS_CMD='tr " " "\n" | sed -n /global:/,/local:/p | grep ";" | tr ";" "\n" | sed -E "s/(.+)/_\1/g" | sed -E "s/(.+[^*])$$$$/\1*/"'
# Workaround for Xcode 11 -fstack-check bug
if enabled clang; then
clang_version=$($cc -dumpversion)
test ${clang_version%%.*} -eq 11 && add_cflags -fno-stack-check
fi
;; ;;
msys*) msys*)
die "Native MSYS builds are discouraged, please use the MINGW environment." die "Native MSYS builds are discouraged, please use the MINGW environment."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment