From 493e1e35ea86a1c091b10a3a11d6a9fe991e03976baeece62804d8d1673cb745 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 11 Aug 2019 03:03:26 +0000 Subject: [PATCH] Accepting request 720447 from home:marxin:static Use FAT LTO objects in order to provide proper static library. OBS-URL: https://build.opensuse.org/request/show/720447 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/glslang?expand=0&rev=50 --- glslang.changes | 5 +++++ glslang.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/glslang.changes b/glslang.changes index f021823..99a485b 100644 --- a/glslang.changes +++ b/glslang.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 2 07:00:29 UTC 2019 - Martin Liška + +- Use FAT LTO objects in order to provide proper static library. + ------------------------------------------------------------------- Fri Jun 28 07:50:03 UTC 2019 - Jan Engelhardt diff --git a/glslang.spec b/glslang.spec index eb5f6e2..9c19bb4 100644 --- a/glslang.spec +++ b/glslang.spec @@ -72,12 +72,14 @@ compressor's dictionary can find better cross module commonality. %autosetup -p1 %build +%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} %install -b="%buildroot" +b="%build +%global _lto_cflags %{_lto_cflags} -ffat-lto-objectsroot" %cmake_install mkdir -p "$b/%_includedir" cp -a SPIRV glslang "$b/%_includedir/"