Index: base/BUILD.gn |
diff --git a/base/BUILD.gn b/base/BUILD.gn |
index bdecf4a257593cdbce9ab4efba48386d5b23ade0..f57b8cd5f1ffa91c12aa320997946702fb78fe4b 100644 |
--- a/base/BUILD.gn |
+++ b/base/BUILD.gn |
@@ -2218,11 +2218,8 @@ test("base_unittests") { |
sources += [ "nix/xdg_util_unittest.cc" ] |
} |
- deps += [ "//base/test:malloc_wrapper" ] |
- |
- 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" ] |
+ if (is_component_build) { |
+ deps += [ "//base/test:malloc_wrapper" ] |
} |
} |