diff options
author | Josh de Kock <josh@itanimul.li> | 2020-04-14 18:42:09 +0100 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2020-04-15 15:45:31 +0100 |
commit | 07ecc4615c3ef5cc2fc61209a845cffd0c073b13 (patch) | |
tree | 93ce3f819847ec510d9a3c775230072cb4565965 /configure | |
parent | 5216edbc54c79869ce630579199e53454f96df96 (diff) | |
download | ffmpeg-07ecc4615c3ef5cc2fc61209a845cffd0c073b13.tar.gz |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5359,6 +5359,11 @@ case $target_os in fi 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*/"' + # 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*) die "Native MSYS builds are discouraged, please use the MINGW environment." |