diff options
author | Matthew Hoops | 2015-01-18 17:00:51 -0500 |
---|---|---|
committer | Matthew Hoops | 2015-01-18 17:00:51 -0500 |
commit | 762e2ca69be7f4bba789ed7decad39e241dd03c5 (patch) | |
tree | 749b5c8d1fc8b29bd03d84025b29b2947ca8570f /configure | |
parent | e10512c8b94d2a83ad67d5f854e1f5149bc41f13 (diff) | |
download | scummvm-rg350-762e2ca69be7f4bba789ed7decad39e241dd03c5.tar.gz scummvm-rg350-762e2ca69be7f4bba789ed7decad39e241dd03c5.tar.bz2 scummvm-rg350-762e2ca69be7f4bba789ed7decad39e241dd03c5.zip |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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' |