From 7baa8f9f6840f4c3bd756795dcf50496aade0960 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 8 Jul 2020 15:33:20 -0600 Subject: [PATCH] Fix link flags to work with LTO --- weston.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/weston.spec b/weston.spec index df52703..cd0cce6 100644 --- a/weston.spec +++ b/weston.spec @@ -3,7 +3,7 @@ Name: weston Version: %{apiver}.0.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Reference compositor for Wayland License: BSD and CC-BY-SA @@ -99,6 +99,9 @@ Common headers for weston %setup -q %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} %meson -Dpipewire=false %else @@ -207,6 +210,9 @@ Common headers for weston %{_datadir}/libweston-%{apiver}/protocols/ %changelog +* Wed Jul 08 2020 Jeff Law - 8.0.0-5 +- Fix link flags to work with LTO + * Fri May 22 2020 Simone Caronni - 8.0.0-4 - Rebuild for updated FreeRDP.