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
This commit is contained in:
Jan Engelhardt 2019-08-11 03:03:26 +00:00 committed by Git OBS Bridge
parent ef7533d7ea
commit 493e1e35ea
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 2 07:00:29 UTC 2019 - Martin Liška <mliska@suse.cz>
- Use FAT LTO objects in order to provide proper static library.
-------------------------------------------------------------------
Fri Jun 28 07:50:03 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -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/"