diff options
-rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2663,8 +2663,15 @@ case $_host_os in append_var CXXFLAGS "-Wl,-q -I$VITASDK/arm-vita-eabi/include" append_var CXXFLAGS "-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard" append_var LDFLAGS "-Wl,-q -L$VITASDK/arm-vita-eabi/lib" + #the next line fixes a crash when starting scumm-7-8 games (The Dig etc.) + #when either -O2, -O3 or -Os optimizations are enabled + append_var CXXFLAGS "-fno-optimize-sibling-calls" + #the next line fixes "branch out of range" error in gob engine when -Os is used append_var CXXFLAGS "-mlong-calls" if test "$_debug_build" = no; then + #optimize for smallest file size. This is necessary to prevent a crash on startup + #due to the large executable file size when many engines are enabled + #for example when --enable-all-engines is used to enable all the unstable engines _optimization_level=-Os fi if test "$_debug_build" = yes; then |