Jan Engelhardt
2c8f3f5e3b
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-tools?expand=0&rev=21
61 lines
2.3 KiB
Diff
61 lines
2.3 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2016-06-13 11:46:16.846841814 +0200
|
|
|
|
Unversioned libraries suck!
|
|
|
|
---
|
|
source/CMakeLists.txt | 1 +
|
|
source/comp/CMakeLists.txt | 1 +
|
|
source/link/CMakeLists.txt | 1 +
|
|
source/opt/CMakeLists.txt | 1 +
|
|
4 files changed, 4 insertions(+)
|
|
|
|
Index: spirv-tools-2018.0.g0/source/CMakeLists.txt
|
|
===================================================================
|
|
--- spirv-tools-2018.0.g0.orig/source/CMakeLists.txt
|
|
+++ spirv-tools-2018.0.g0/source/CMakeLists.txt
|
|
@@ -324,6 +324,7 @@ set_source_files_properties(
|
|
PROPERTIES OBJECT_DEPENDS "${SPIRV_TOOLS_BUILD_VERSION_INC}")
|
|
|
|
add_library(${SPIRV_TOOLS} ${SPIRV_SOURCES})
|
|
+set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse5)
|
|
spvtools_default_compile_options(${SPIRV_TOOLS})
|
|
target_include_directories(${SPIRV_TOOLS}
|
|
PUBLIC ${spirv-tools_SOURCE_DIR}/include
|
|
Index: spirv-tools-2018.0.g0/source/comp/CMakeLists.txt
|
|
===================================================================
|
|
--- spirv-tools-2018.0.g0.orig/source/comp/CMakeLists.txt
|
|
+++ spirv-tools-2018.0.g0/source/comp/CMakeLists.txt
|
|
@@ -14,6 +14,7 @@
|
|
|
|
if(SPIRV_BUILD_COMPRESSION)
|
|
add_library(SPIRV-Tools-comp markv_codec.cpp)
|
|
+ set_target_properties(SPIRV-Tools-comp PROPERTIES SOVERSION suse5)
|
|
|
|
spvtools_default_compile_options(SPIRV-Tools-comp)
|
|
target_include_directories(SPIRV-Tools-comp
|
|
Index: spirv-tools-2018.0.g0/source/link/CMakeLists.txt
|
|
===================================================================
|
|
--- spirv-tools-2018.0.g0.orig/source/link/CMakeLists.txt
|
|
+++ spirv-tools-2018.0.g0/source/link/CMakeLists.txt
|
|
@@ -14,6 +14,7 @@
|
|
add_library(SPIRV-Tools-link
|
|
linker.cpp
|
|
)
|
|
+set_target_properties(SPIRV-Tools-link PROPERTIES SOVERSION suse5)
|
|
|
|
spvtools_default_compile_options(SPIRV-Tools-link)
|
|
target_include_directories(SPIRV-Tools-link
|
|
Index: spirv-tools-2018.0.g0/source/opt/CMakeLists.txt
|
|
===================================================================
|
|
--- spirv-tools-2018.0.g0.orig/source/opt/CMakeLists.txt
|
|
+++ spirv-tools-2018.0.g0/source/opt/CMakeLists.txt
|
|
@@ -142,6 +142,7 @@ add_library(SPIRV-Tools-opt
|
|
workaround1209.cpp
|
|
)
|
|
|
|
+set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse5)
|
|
spvtools_default_compile_options(SPIRV-Tools-opt)
|
|
target_include_directories(SPIRV-Tools-opt
|
|
PUBLIC ${spirv-tools_SOURCE_DIR}/include
|