aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Price <jrprice@google.com>2020-03-03 10:20:00 -0500
committerJames Price <jrprice@google.com>2020-03-03 18:10:35 +0000
commit126720bd2e578fec077a57d877ac64c46b18cd52 (patch)
treecea5e1ccd5a4a308a33b74d289e7042817643a8a
parentabc7a30a06c7c135d76032f1346c5d2d1b73f427 (diff)
downloadswiftshader-126720bd2e578fec077a57d877ac64c46b18cd52.tar.gz
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>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 91b4615a4..5c5e219d6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -296,7 +296,7 @@ macro(set_shared_library_export_map TARGET DIR)
# -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.