CONFIGURE: Use -mlongcall on Mac PPC builds

Calls larger than 32MB away should no longer cause linker errors, provided libraries are rebuilt with that too
This commit is contained in:
Matthew Hoops 2015-01-18 17:00:51 -05:00
parent e10512c8b9
commit 762e2ca69b

11
configure vendored
View file

@ -2181,6 +2181,17 @@ case $_host_os in
exit 1
;;
darwin*)
# Pass -mlongcall to gcc so that it emits long calls
# which will allow for calls larger than 32MB. The linker
# will discard the calls if they are not needed, but we
# need to ensure the compiler emits them in the first place.
case $_host_cpu in
powerpc*)
CFLAGS="$CFLAGS -mlongcall"
CXXFLAGS="$CXXFLAGS -mlongcall"
;;
esac
DEFINES="$DEFINES -DMACOSX"
LIBS="$LIBS -framework AudioUnit -framework AudioToolbox -framework Carbon -framework CoreMIDI"
add_line_to_config_mk 'MACOSX = 1'