Blame SOURCES/glslang_linker_flags.patch

98fcfa
--- a/libshaderc_util/CMakeLists.txt
98fcfa
+++ b/libshaderc_util/CMakeLists.txt
98fcfa
@@ -47,7 +47,7 @@
98fcfa
 find_package(Threads)
98fcfa
 target_link_libraries(shaderc_util PRIVATE
98fcfa
   glslang OSDependent OGLCompiler HLSL glslang SPIRV
98fcfa
-  SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT})
98fcfa
+  SPIRV-Tools-opt MachineIndependent GenericCodeGen ${CMAKE_THREAD_LIBS_INIT})
98fcfa
 
98fcfa
 shaderc_add_tests(
98fcfa
   TEST_PREFIX shaderc_util
98fcfa
98fcfa
--- a/glslc/CMakeLists.txt
98fcfa
+++ b/glslc/CMakeLists.txt
98fcfa
@@ -43,7 +43,7 @@
98fcfa
 endif(SHADERC_ENABLE_WGSL_OUTPUT)
98fcfa
 
98fcfa
 target_link_libraries(glslc PRIVATE
98fcfa
-  glslang OSDependent OGLCompiler HLSL glslang SPIRV    # Glslang libraries
98fcfa
+  glslang OSDependent OGLCompiler HLSL glslang SPIRV MachineIndependent GenericCodeGen # Glslang libraries
98fcfa
   $<$<BOOL:${SHADERC_ENABLE_WGSL_OUTPUT}>:libtint>      # Tint libraries, optional
98fcfa
   shaderc_util shaderc                                  # internal Shaderc libraries
98fcfa
   ${CMAKE_THREAD_LIBS_INIT})
98fcfa