Commit 126720bd by James Price

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/+/41848Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarJames Price <jrprice@google.com>
parent abc7a30a
...@@ -296,7 +296,7 @@ macro(set_shared_library_export_map TARGET DIR) ...@@ -296,7 +296,7 @@ macro(set_shared_library_export_map TARGET DIR)
# -Bsymbolic binds symbol references to their global definitions within # -Bsymbolic binds symbol references to their global definitions within
# a shared object, thereby preventing symbol preemption. # 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") if(ARCH STREQUAL "mipsel" OR ARCH STREQUAL "mips64el")
# MIPS supports sysv hash-style only. # MIPS supports sysv hash-style only.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment