Index: chrome/test/BUILD.gn |
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn |
index d5616db05a7a814e5e2587ce978b7d745514676e..8168d92bc32f03d95b27b5727f9127210341adc3 100644 |
--- a/chrome/test/BUILD.gn |
+++ b/chrome/test/BUILD.gn |
@@ -1066,6 +1066,12 @@ if (!is_android) { |
"//chrome") |
} |
} |
+ |
+ if (is_linux && !is_component_build) { |
+ # Set rpath to find the CDM adapter even in a non-component build. |
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
+ } |
+ |
if (is_chromeos) { |
sources += rebase_path( |
chrome_tests_gypi_values.chrome_browser_tests_chromeos_sources, |