Use LINK_FLAGS for -BSymbolic in CMake build
This fixes the Vulkan Loader for CMake builds.
Bug: b/150626933
Change-Id: I600597c95c4a41f3242028fd9ccd65fced4ead33
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41848
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: James Price <jrprice@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 91b4615..5c5e219 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -296,7 +296,7 @@
# -Bsymbolic binds symbol references to their global definitions within
# a shared object, thereby preventing symbol preemption.
- set_property(TARGET ${TARGET} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wl,-Bsymbolic")
+ set_property(TARGET ${TARGET} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-Bsymbolic")
if(ARCH STREQUAL "mipsel" OR ARCH STREQUAL "mips64el")
# MIPS supports sysv hash-style only.