1 diff --git a/configure b/configure
2 index d45e88f..25d872b 100755
5 @@ -322,7 +322,14 @@ case "$bytecc,$target" in
6 bytecccompopts="-fno-defer-pop $gcc_warnings -DSHRINKED_GNUC"
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"
16 + bytecccompopts="-fno-defer-pop $gcc_warnings"
19 mkexe="$mkexe -Wl,-no_compact_unwind"
20 # Tell gcc that we can use 32-bit code addresses for threaded code