Index: mojo/common/BUILD.gn |
diff --git a/mojo/common/BUILD.gn b/mojo/common/BUILD.gn |
index 7cbd5bf40c6358a63b8f86a8b935db34d747a6c9..f2da1fc6e6761001e85b0144c2b514707cb19e85 100644 |
--- a/mojo/common/BUILD.gn |
+++ b/mojo/common/BUILD.gn |
@@ -97,6 +97,12 @@ test("mojo_common_unittests") { |
"../message_pump/message_pump_mojo_unittest.cc", |
"common_type_converters_unittest.cc", |
] |
+ |
+ if (is_linux && !is_component_build) { |
+ # This tests dynamically loads libmojo_test_support even in non-component |
+ # builds. |
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
+ } |
} |
test("mojo_common_perftests") { |