BUILD: Use -Os optimization for mac PPC release builds

Without this we now get a 'virtual memory exhausted' error when
running the executable.
This commit is contained in:
Thierry Crozat 2020-09-14 03:25:33 +01:00
parent 40241f6399
commit fa1ec35672

3
configure vendored
View File

@ -2731,10 +2731,13 @@ case $_host_os in
# 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.
# Also the executable has grown to a size where using -Os is necessary to avoid a
# 'virtual memory exhausted' error when running the executable.
case $_host_cpu in
powerpc*)
append_var CFLAGS "-mlongcall"
append_var CXXFLAGS "-mlongcall"
_optimization_level=-Os
;;
esac