- Rework static library removal & building procedure to identify
new static libs. (libGenericCodeGen.so and libMachineIndependent.so are now added) OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/glslang?expand=0&rev=96
This commit is contained in:
parent
09958f238a
commit
f455250253
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 7 09:20:41 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Rework static library removal & building procedure to identify
|
||||
new static libs. (libGenericCodeGen.so and
|
||||
libMachineIndependent.so are now added)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 22 23:01:23 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
12
glslang.spec
12
glslang.spec
@ -79,7 +79,6 @@ compressor's dictionary can find better cross module commonality.
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
%cmake_install
|
||||
b="%buildroot"
|
||||
find "$b" -type f -name "*.a" -print -delete
|
||||
mkdir -p "$b/%_includedir"
|
||||
cp -a SPIRV glslang "$b/%_includedir/"
|
||||
find "$b/%_includedir/" -type f ! -iname "*.h" -a ! -iname "*.hpp" -print -delete
|
||||
@ -87,10 +86,13 @@ ln -s SPIRV/spirv.hpp "$b/%_includedir/"
|
||||
find "$b/%_includedir/" -type f -exec chmod a-x "{}" "+"
|
||||
cp build/StandAlone/libglslang-default-resource-limits.so "$b/%_libdir/"
|
||||
|
||||
# 3rd party programs use -lOGLCompiler (because pristine glslang ships .a files),
|
||||
# 3rd party programs use -lOGLCompiler (because pristine glslang shipped .a files),
|
||||
# so satisfy them under our shared build.
|
||||
ln -s libglslang.so "$b/%_libdir/libOGLCompiler.so"
|
||||
ln -s libglslang.so "$b/%_libdir/libOSDependent.so"
|
||||
for i in libOGLCompiler libOSDependent libGenericCodeGen libMachineIndependent; do
|
||||
ln -s libglslang.so "$b/%_libdir/$i.so"
|
||||
rm -f "$b/%_libdir/$i.a"
|
||||
done
|
||||
|
||||
%fdupes %buildroot/%_prefix
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
@ -104,7 +106,9 @@ ln -s libglslang.so "$b/%_libdir/libOSDependent.so"
|
||||
%_bindir/spirv*
|
||||
%_libdir/cmake/
|
||||
%_libdir/*resource*.so
|
||||
%_libdir/libGenericCodeGen.so
|
||||
%_libdir/libHLSL.so
|
||||
%_libdir/libMachineIndependent.so
|
||||
%_libdir/libOGLCompiler.so
|
||||
%_libdir/libOSDependent.so
|
||||
%_libdir/libSPIRV.so
|
||||
|
Loading…
Reference in New Issue
Block a user