Commit caf9742d by Jamie Madill Committed by Commit Bot

samples: Use rpath on Linux/ChromeOS.

This will allow us to load ANGLE libraries without needing LD_LIBRARY_PATH. Bug: None Change-Id: Iaa389b3a42fed37216e175bee080a9f8fde3eb0b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2884418 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
parent 0639f7a9
...@@ -74,6 +74,11 @@ template("angle_sample") { ...@@ -74,6 +74,11 @@ template("angle_sample") {
if (defined(invoker.suppressed_configs)) { if (defined(invoker.suppressed_configs)) {
suppressed_configs += invoker.suppressed_configs suppressed_configs += invoker.suppressed_configs
} }
if ((is_linux || is_chromeos) && !is_component_build) {
# Set rpath to find shared libs in a non-component build.
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
}
} }
} }
......
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