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:
parent
e10512c8b9
commit
762e2ca69b
1 changed files with 11 additions and 0 deletions
11
configure
vendored
11
configure
vendored
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue