forked from pool/MozillaFirefox
Accepting request 1104036 from home:adamm:ldbug
- After further testing on memory consumption during linking, it's safe to remove most of the memory reducing options for ix86 linker. A combination of these actually resulted in the OOM condition. It's even possible to add basic debugging info while keeping linker memory consumption at about 2GB OBS-URL: https://build.opensuse.org/request/show/1104036 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=1099
This commit is contained in:
parent
062ac2aed4
commit
afd2ed8433
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 15 09:51:15 UTC 2023 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
- After further testing on memory consumption during linking, it's
|
||||
safe to remove most of the memory reducing options for ix86 linker.
|
||||
A combination of these actually resulted in the OOM condition.
|
||||
It's even possible to add basic debugging info while keeping
|
||||
linker memory consumption at about 2GB
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 10 16:32:02 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
|
@ -383,17 +383,20 @@ export CXX=g++
|
||||
%endif
|
||||
%endif
|
||||
%ifarch %arm %ix86
|
||||
### NOTE: these sections are not required anymore. Alson --no-keep-memory + -Wl,-z,pack-relative-relocs causes
|
||||
### ld to go OOM (https://sourceware.org/bugzilla/show_bug.cgi?id=30756)
|
||||
# Limit RAM usage during link
|
||||
export LDFLAGS="\$LDFLAGS -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--no-map-whole-files -Wl,--hash-size=31"
|
||||
# export LDFLAGS="\$LDFLAGS -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--no-map-whole-files -Wl,--hash-size=31"
|
||||
#
|
||||
# A lie to prevent -Wl,--gc-sections being set which requires more memory than 32bit can offer
|
||||
export GC_SECTIONS_BREAKS_DEBUG_RANGES=yes
|
||||
#export GC_SECTIONS_BREAKS_DEBUG_RANGES=yes
|
||||
%endif
|
||||
export LDFLAGS="\$LDFLAGS -fPIC -Wl,-z,relro,-z,now"
|
||||
%ifarch ppc64 ppc64le
|
||||
%endif
|
||||
%ifarch %ix86
|
||||
# Not enough memory on 32-bit systems, remove debug info.
|
||||
export CFLAGS="\$CFLAGS -g0"
|
||||
# Not enough memory on 32-bit systems, reduce debug info.
|
||||
export CFLAGS="\$CFLAGS -g1"
|
||||
%endif
|
||||
export CXXFLAGS="\$CFLAGS"
|
||||
export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
|
||||
@ -431,7 +434,7 @@ ac_add_options --enable-debug-symbols=-g0
|
||||
ac_add_options --disable-install-strip
|
||||
%ifarch %ix86 %arm
|
||||
# OOM on 32-bit when ld passed -Wl,-z,pack-relative-relocs
|
||||
ac_add_options --enable-elf-hack
|
||||
# ac_add_options --enable-elf-hack
|
||||
%endif
|
||||
ac_add_options --with-system-nspr
|
||||
ac_add_options --with-system-nss
|
||||
|
Loading…
Reference in New Issue
Block a user