Index: tools/gn/secondary/build/config/compiler/BUILD.gn |
diff --git a/tools/gn/secondary/build/config/compiler/BUILD.gn b/tools/gn/secondary/build/config/compiler/BUILD.gn |
index 00ebe8f098c17cb807ca7d62041df912a19caa59..d31955a8e882f3cfb495b312685d63f5c5c87443 100644 |
--- a/tools/gn/secondary/build/config/compiler/BUILD.gn |
+++ b/tools/gn/secondary/build/config/compiler/BUILD.gn |
@@ -90,9 +90,10 @@ config("compiler") { |
"-pthread", |
"-pipe", # Use pipes for communicating between sub-processes. Faster. |
] |
+ gold_path = to_build_path("//third_party/gold") |
ldflags += [ |
# Use Gold for linking: it is checked out in the source tree. |
- "-B$relative_build_to_source_root_dir/third_party/gold", |
+ "-B$gold_path", |
"-fPIC", |
"-pthread", |