mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
chromium: try to fix ld(1) memory exhaustion on x86.
This commit is contained in:
parent
d1f98fb708
commit
d64843d835
1 changed files with 11 additions and 2 deletions
|
@ -51,8 +51,13 @@ pre_configure() {
|
||||||
do_configure() {
|
do_configure() {
|
||||||
local conf=""
|
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
|
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)
|
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
|
||||||
# Note: These are for Void Linux use ONLY.
|
# Note: These are for Void Linux use ONLY.
|
||||||
|
@ -152,7 +157,11 @@ do_configure() {
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
unset CC CXX
|
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
|
ninja -C out/Release ${makejobs} chrome chrome_sandbox chromedriver
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue