Accepting request 536618 from GNOME:Factory
- Enable gold linker on s390/s390x on SLE15/Tumbleweed. (forwarded request 536472 from fcrozat) OBS-URL: https://build.opensuse.org/request/show/536618 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/webkit2gtk3?expand=0&rev=45
This commit is contained in:
commit
219405a81d
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 24 14:29:11 UTC 2017 - fcrozat@suse.com
|
||||||
|
|
||||||
|
- Enable gold linker on s390/s390x on SLE15/Tumbleweed.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 14 14:57:43 UTC 2017 - fezhang@suse.com
|
Thu Sep 14 14:57:43 UTC 2017 - fezhang@suse.com
|
||||||
|
|
||||||
|
@ -25,6 +25,15 @@
|
|||||||
%define _jscver 4
|
%define _jscver 4
|
||||||
%define _pkgconfig_suffix gtk-3.0
|
%define _pkgconfig_suffix gtk-3.0
|
||||||
%define _name webkitgtk
|
%define _name webkitgtk
|
||||||
|
|
||||||
|
# gold linker not available on old s390/s390x
|
||||||
|
%define _gold_linker 1
|
||||||
|
%if 0%{suse_version} < 1320
|
||||||
|
%ifarch s390 s390x
|
||||||
|
%define _gold_linker 0
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: webkit2gtk3
|
Name: webkit2gtk3
|
||||||
Version: 2.18.0
|
Version: 2.18.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -79,7 +88,7 @@ BuildRequires: pkgconfig(libxslt) >= 1.1.7
|
|||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
BuildRequires: pkgconfig(xt)
|
BuildRequires: pkgconfig(xt)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
%ifnarch s390 s390x
|
%if %{_gold_linker}
|
||||||
BuildRequires: binutils-gold
|
BuildRequires: binutils-gold
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: gcc-c++ >= 4.9
|
BuildRequires: gcc-c++ >= 4.9
|
||||||
@ -236,11 +245,10 @@ more.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# Use linker flags to reduce memory consumption
|
# Use linker flags to reduce memory consumption
|
||||||
%ifarch s390 s390x
|
%if %{_gold_linker}
|
||||||
# binutils-gold doesn't exist on s390x
|
|
||||||
%global optflags %(echo %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads | sed 's/-g /-g1 /')
|
|
||||||
%else
|
|
||||||
%global optflags %(echo %{optflags} -Wl,--no-keep-memory | sed 's/-g /-g1 /')
|
%global optflags %(echo %{optflags} -Wl,--no-keep-memory | sed 's/-g /-g1 /')
|
||||||
|
%else
|
||||||
|
%global optflags %(echo %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads | sed 's/-g /-g1 /')
|
||||||
%endif
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user