Skip to content

Commit

Permalink
PSP2: optimize compilation for file-size
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Mar 10, 2017
1 parent d541c5e commit f323cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -2663,8 +2663,9 @@ 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"
append_var CXXFLAGS "-mlong-calls"
if test "$_debug_build" = no; then
_optimization_level=-O1
_optimization_level=-Os
fi
if test "$_debug_build" = yes; then
_optimization_level=-O0
Expand Down

1 comment on commit f323cff

@rsn8887
Copy link
Contributor Author

@rsn8887 rsn8887 commented on f323cff Mar 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the crash on startup on the Vita when configured with "--enable-all-engines." The crash was caused by the executable size becoming too large when all engines are included statically.

Please sign in to comment.