aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMatthew Hoops2015-01-18 17:00:51 -0500
committerMatthew Hoops2015-01-18 17:00:51 -0500
commit762e2ca69be7f4bba789ed7decad39e241dd03c5 (patch)
tree749b5c8d1fc8b29bd03d84025b29b2947ca8570f /configure
parente10512c8b94d2a83ad67d5f854e1f5149bc41f13 (diff)
downloadscummvm-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-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index dbb36c3812..61e82f158f 100755
--- a/configure
+++ b/configure
@@ -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'