From 769485a2adc173b694c1f137fe333478b7ab4783b662b988ecda3b633cafebb7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 3 Feb 2020 10:58:49 +0000 Subject: [PATCH] Accepting request 769503 from home:alarrosa:branches:X11:Wayland - Fix build when _lto_cflags is not defined (as in SLE/Leap) OBS-URL: https://build.opensuse.org/request/show/769503 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/glslang?expand=0&rev=67 --- glslang.changes | 5 +++++ glslang.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/glslang.changes b/glslang.changes index 670cc4d..5ed384b 100644 --- a/glslang.changes +++ b/glslang.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 3 10:09:18 UTC 2020 - Antonio Larrosa + +- Fix build when _lto_cflags is not defined (as in SLE/Leap) + ------------------------------------------------------------------- Sun Jan 19 11:38:09 UTC 2020 - Jan Engelhardt diff --git a/glslang.spec b/glslang.spec index b3710a2..5848704 100644 --- a/glslang.spec +++ b/glslang.spec @@ -74,7 +74,7 @@ compressor's dictionary can find better cross module commonality. %autosetup -p1 %build -%global _lto_cflags %{_lto_cflags} -ffat-lto-objects +%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects # Trim -Wl,--no-undefined for now (https://github.com/KhronosGroup/glslang/issues/1484) %cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" make %{?_smp_mflags}