mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-test.git
synced 2025-02-24 01:52:45 +00:00
-znotext for lld on ix86
This commit is contained in:
parent
aa532e1eeb
commit
5310027d75
1 changed files with 9 additions and 3 deletions
|
@ -372,6 +372,7 @@ ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/node
|
|||
%if 0%{localhost}
|
||||
%define is_limit 100
|
||||
%else
|
||||
# 10 is used on ABF
|
||||
%define is_limit 10
|
||||
%endif
|
||||
|
||||
|
@ -395,12 +396,17 @@ export AR=ar
|
|||
export NM=nm
|
||||
|
||||
%ifarch %ix86
|
||||
# GNU ld linker got out of memory on i586 with jumbo is_limit=100.
|
||||
# Gold linker worked fine with jumbo is_limit=100 on i586.
|
||||
# GNU BFD ld linker got out of memory on i586 with jumbo is_limit=10.
|
||||
# Gold linker worked fine with jumbo is_limit=10 on i586, but sometimes got out of memory.
|
||||
%define linker_args use_lld=true
|
||||
# These LDFLAGS fix building bundled openh264 with lld linker on i586
|
||||
# "/usr/bin/ld.lld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment"
|
||||
# Source of the solution: https://svnweb.freebsd.org/ports?view=revision&revision=480034
|
||||
# Reported it to upstream: https://crbug.com/898171
|
||||
export LDFLAGS="$LDFLAGS -Wl,-znotext"
|
||||
%else
|
||||
%ifarch x86_64
|
||||
# If both gold and lld are false, GNU ld is used.
|
||||
# If both gold and lld are false, GNU BFD ld is used.
|
||||
%define linker_args use_gold=false use_lld=false is_cfi=false use_thin_lto=false
|
||||
%endif
|
||||
%endif
|
||||
|
|
Loading…
Add table
Reference in a new issue