at master 755 B view raw
1diff --git a/configure b/configure 2index d45e88f..25d872b 100755 3--- a/configure 4+++ b/configure 5@@ -322,7 +322,14 @@ case "$bytecc,$target" in 6 bytecccompopts="-fno-defer-pop $gcc_warnings -DSHRINKED_GNUC" 7 mathlib="";; 8 *,*-*-darwin*) 9- bytecccompopts="-fno-defer-pop $gcc_warnings" 10+ # On recent version of OSX, gcc is a symlink to clang 11+ if $bytecc --version | grep -q clang; then 12+ # -fno-defer-pop is not supported by clang, and make recent 13+ # versions of clang to fail 14+ bytecccompopts="$gcc_warnings" 15+ else 16+ bytecccompopts="-fno-defer-pop $gcc_warnings" 17+ fi 18 mathlib="" 19 mkexe="$mkexe -Wl,-no_compact_unwind" 20 # Tell gcc that we can use 32-bit code addresses for threaded code