Commit d22cc5cb by Yuly Novikov Committed by Commit Bot

Vulkan: Use correct Linux link flags for layers.

From third_party/vulkan-validation-layers/src/layers/CMakeLists.txt Otherwise, there is a conflict between global functions with same name from different layers and the loader. Conflict is resolved by -Bsymbolic. BUG=angleproject:2296 Change-Id: I40859326626c3865ba346c6e817b7c512735054e Reviewed-on: https://chromium-review.googlesource.com/850727 Commit-Queue: Yuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent c405ae71
......@@ -863,6 +863,9 @@ foreach(layer_info, layers) {
if (is_win) {
sources += [ "$vulkan_layers_dir/layers/VkLayer_$name.def" ]
}
if (is_linux) {
ldflags = [ "-Wl,-Bsymbolic,--exclude-libs,ALL" ]
}
}
}
......
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