Fix link flags to work with LTO

main
Jeff Law 4 years ago
parent 2196f4a0ab
commit 7baa8f9f68
  1. 8
      weston.spec

@ -3,7 +3,7 @@
Name: weston Name: weston
Version: %{apiver}.0.0 Version: %{apiver}.0.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: Reference compositor for Wayland Summary: Reference compositor for Wayland
License: BSD and CC-BY-SA License: BSD and CC-BY-SA
@ -99,6 +99,9 @@ Common headers for weston
%setup -q %setup -q
%build %build
# ninja injects -Wl,--no-undefined, which intereferes with LTO, so undo
# the setting. Thanks to the SuSE folks for the workaround.
export LDFLAGS="%{?build_ldflags} -Wl,-z,undefs"
%if %{meson_prob} %if %{meson_prob}
%meson -Dpipewire=false %meson -Dpipewire=false
%else %else
@ -207,6 +210,9 @@ Common headers for weston
%{_datadir}/libweston-%{apiver}/protocols/ %{_datadir}/libweston-%{apiver}/protocols/
%changelog %changelog
* Wed Jul 08 2020 Jeff Law <law@redhat.com> - 8.0.0-5
- Fix link flags to work with LTO
* Fri May 22 2020 Simone Caronni <negativo17@gmail.com> - 8.0.0-4 * Fri May 22 2020 Simone Caronni <negativo17@gmail.com> - 8.0.0-4
- Rebuild for updated FreeRDP. - Rebuild for updated FreeRDP.

Loading…
Cancel
Save