1
0
forked from pool/spirv-tools
spirv-tools/ver.diff

35 lines
1.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/opt/CMakeLists.txt | 1 +
2 files changed, 2 insertions(+)
Index: spirv-tools-2016.7~g24/source/CMakeLists.txt
===================================================================
--- spirv-tools-2016.7~g24.orig/source/CMakeLists.txt
+++ spirv-tools-2016.7~g24/source/CMakeLists.txt
@@ -219,6 +219,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 suse2)
spvtools_default_compile_options(${SPIRV_TOOLS})
target_include_directories(${SPIRV_TOOLS}
PUBLIC ${spirv-tools_SOURCE_DIR}/include
Index: spirv-tools-2016.7~g24/source/opt/CMakeLists.txt
===================================================================
--- spirv-tools-2016.7~g24.orig/source/opt/CMakeLists.txt
+++ spirv-tools-2016.7~g24/source/opt/CMakeLists.txt
@@ -53,6 +53,7 @@ add_library(SPIRV-Tools-opt
unify_const_pass.cpp
)
+set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse2)
spvtools_default_compile_options(SPIRV-Tools-opt)
target_include_directories(SPIRV-Tools-opt
PUBLIC ${spirv-tools_SOURCE_DIR}/include