2022-10-25 02:10:50 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2022-10-25 02:00:05.861368368 +0200
|
|
|
|
References: https://github.com/KhronosGroup/glslang/issues/3052
|
|
|
|
|
|
|
|
The ABI break in commit 11.12.0~18^2 causes programs to no longer run.
|
|
|
|
Induce a SONAME change.
|
|
|
|
---
|
2022-12-15 16:22:21 +01:00
|
|
|
SPIRV/CMakeLists.txt | 2 ++
|
|
|
|
StandAlone/CMakeLists.txt | 1 +
|
|
|
|
glslang/CMakeLists.txt | 1 +
|
|
|
|
hlsl/CMakeLists.txt | 1 +
|
|
|
|
4 files changed, 5 insertions(+)
|
2022-10-25 02:10:50 +02:00
|
|
|
|
2022-12-15 16:22:21 +01:00
|
|
|
Index: glslang-11.13.0/SPIRV/CMakeLists.txt
|
2022-10-25 02:10:50 +02:00
|
|
|
===================================================================
|
2022-12-15 16:22:21 +01:00
|
|
|
--- glslang-11.13.0.orig/SPIRV/CMakeLists.txt
|
|
|
|
+++ glslang-11.13.0/SPIRV/CMakeLists.txt
|
|
|
|
@@ -72,6 +72,7 @@ set(SPVREMAP_HEADERS
|
2022-10-25 02:10:50 +02:00
|
|
|
|
|
|
|
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
2022-12-15 16:22:21 +01:00
|
|
|
set_target_properties(SPIRV PROPERTIES VERSION "${GLSLANG_VERSION}" SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
|
|
|
+set_target_properties(SPIRV PROPERTIES LINK_FLAGS "-Wl,--version-script=/tmp/z.sym")
|
2022-10-25 02:10:50 +02:00
|
|
|
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_include_directories(SPIRV PUBLIC
|
2022-12-15 16:22:21 +01:00
|
|
|
@@ -83,6 +84,7 @@ glslang_add_build_info_dependency(SPIRV)
|
2022-10-25 02:10:50 +02:00
|
|
|
if (ENABLE_SPVREMAPPER)
|
|
|
|
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
2022-12-15 16:22:21 +01:00
|
|
|
set_target_properties(SPVRemapper PROPERTIES VERSION "${GLSLANG_VERSION}" SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
|
|
|
+ set_target_properties(SPVRemapper PROPERTIES LINK_FLAGS "-Wl,--version-script=/tmp/z.sym")
|
2022-10-25 02:10:50 +02:00
|
|
|
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
endif()
|
2022-12-15 16:22:21 +01:00
|
|
|
Index: glslang-11.13.0/StandAlone/CMakeLists.txt
|
2022-10-25 02:10:50 +02:00
|
|
|
===================================================================
|
2022-12-15 16:22:21 +01:00
|
|
|
--- glslang-11.13.0.orig/StandAlone/CMakeLists.txt
|
|
|
|
+++ glslang-11.13.0/StandAlone/CMakeLists.txt
|
|
|
|
@@ -51,6 +51,7 @@ add_library(glslang-default-resource-lim
|
2022-10-25 02:10:50 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ResourceLimits.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resource_limits_c.cpp)
|
2022-12-15 16:22:21 +01:00
|
|
|
set_target_properties(glslang-default-resource-limits PROPERTIES VERSION "${GLSLANG_VERSION}" SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
|
|
|
+set_target_properties(glslang-default-resource-limits PROPERTIES LINK_FLAGS "-Wl,--version-script=/tmp/z.sym")
|
2022-10-25 02:10:50 +02:00
|
|
|
set_property(TARGET glslang-default-resource-limits PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET glslang-default-resource-limits PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2022-12-15 16:22:21 +01:00
|
|
|
Index: glslang-11.13.0/glslang/CMakeLists.txt
|
2022-10-25 02:10:50 +02:00
|
|
|
===================================================================
|
2022-12-15 16:22:21 +01:00
|
|
|
--- glslang-11.13.0.orig/glslang/CMakeLists.txt
|
|
|
|
+++ glslang-11.13.0/glslang/CMakeLists.txt
|
|
|
|
@@ -172,6 +172,7 @@ set_target_properties(glslang PROPERTIES
|
2022-10-25 02:10:50 +02:00
|
|
|
POSITION_INDEPENDENT_CODE ON
|
|
|
|
VERSION "${GLSLANG_VERSION}"
|
2022-12-15 16:22:21 +01:00
|
|
|
SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
|
|
|
+set_target_properties(glslang PROPERTIES LINK_FLAGS "-Wl,--version-script=/tmp/z.sym")
|
2022-10-25 02:10:50 +02:00
|
|
|
target_link_libraries(glslang PRIVATE OGLCompiler OSDependent MachineIndependent)
|
|
|
|
target_include_directories(glslang PUBLIC
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
2022-12-15 16:22:21 +01:00
|
|
|
Index: glslang-11.13.0/hlsl/CMakeLists.txt
|
2022-10-25 02:10:50 +02:00
|
|
|
===================================================================
|
2022-12-15 16:22:21 +01:00
|
|
|
--- glslang-11.13.0.orig/hlsl/CMakeLists.txt
|
|
|
|
+++ glslang-11.13.0/hlsl/CMakeLists.txt
|
|
|
|
@@ -41,6 +41,7 @@ add_library(HLSL ${LIB_TYPE} "stub.cpp")
|
2022-10-25 02:10:50 +02:00
|
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
2022-12-15 16:22:21 +01:00
|
|
|
set_target_properties(HLSL PROPERTIES VERSION "${GLSLANG_VERSION}" SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
|
|
|
+set_target_properties(HLSL PROPERTIES LINK_FLAGS "-Wl,--version-script=/tmp/z.sym")
|
2022-10-25 02:10:50 +02:00
|
|
|
|
|
|
|
if(WIN32 AND BUILD_SHARED_LIBS)
|
|
|
|
set_target_properties(HLSL PROPERTIES PREFIX "")
|