chromium: try to fix ld(1) memory exhaustion on x86.

This commit is contained in:
Juan RP 2014-09-26 07:33:52 +02:00
parent d1f98fb708
commit d64843d835
1 changed files with 11 additions and 2 deletions

View File

@ -51,8 +51,13 @@ pre_configure() {
do_configure() {
local conf=""
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
# Use linker flags to reduce memory consumption
LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
fi
unset CC CXX
export -n CFLAGS CXXFLAGS
export -n CFLAGS CXXFLAGS LDFLAGS
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
# Note: These are for Void Linux use ONLY.
@ -152,7 +157,11 @@ do_configure() {
do_build() {
unset CC CXX
export -n CFLAGS CXXFLAGS
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
# Use linker flags to reduce memory consumption
LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
fi
export -n CFLAGS CXXFLAGS LDFLAGS
ninja -C out/Release ${makejobs} chrome chrome_sandbox chromedriver
}