Index: components/BUILD.gn |
diff --git a/components/BUILD.gn b/components/BUILD.gn |
index 935c2cfdf529c634d3930098848a34868537bb0f..ae90c4a06481f8dc9d2206bf407f19c1928f976c 100644 |
--- a/components/BUILD.gn |
+++ b/components/BUILD.gn |
@@ -419,6 +419,11 @@ test("components_browsertests") { |
sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] |
deps += [ "//components/printing/test:test_support" ] |
} |
+ |
+ if (!is_component_build) { |
+ # Set rpath to find libmalloc_wrapper.so even in a non-component build. |
+ configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
+ } |
} |
test("components_perftests") { |