Switch to lld linker. Export additional LDFLAGS unconditionally.

This commit is contained in:
Mikhail Novosyolov 2018-10-19 08:26:54 +03:00
parent 526e7431c3
commit b494ba194e

View file

@ -39,7 +39,7 @@
Summary: A fast web browser based on the Blink engine
Name: chromium-browser-stable
Version: 69.0.3497.100
Release: 5
Release: 6
License: BSD, LGPL
Group: Networking/WWW
Url: https://www.chromium.org/Home
@ -388,18 +388,13 @@ export NM=nm
# lld linker overrides gold linker
# lld gave error on x86_64
# let's use gold for now
%define use_linker use_gold
#Alternative to gold: define use_linker use_lld
%define use_linker use_lld
#Alternative to gold: define use_linker use_gold
%define use_linker_def true
%if %{use_linker} == "use_lld"
# flags to fix i586 builds
# these flags previously were exported on all architectures, not ix86 only
%ifarch %{ix86}
# i386 i486 i586 i686
export LDFLAGS="$LDFLAGS -Wl,-z,notext"
%endif
%endif
%else
%define is_clang false