Index: build/config/gcc/BUILD.gn |
diff --git a/build/config/gcc/BUILD.gn b/build/config/gcc/BUILD.gn |
index c9639ad91cf3ba96691ec86474b342346584aa79..b457c1c57a1f9a1b56d11ff5c4fe6e2efbd57a0b 100644 |
--- a/build/config/gcc/BUILD.gn |
+++ b/build/config/gcc/BUILD.gn |
@@ -25,6 +25,10 @@ config("executable_ldconfig") { |
"-Wl,-rpath=\$ORIGIN/lib/", |
"-Wl,-rpath-link=lib/", |
+ |
+ # Newer binutils don't set DT_RPATH unless you disable "new" dtags |
+ # and the new DT_RUNPATH doesn't work without --no-as-needed flag. |
+ "-Wl,--disable-new-dtags", |
] |
if (is_android) { |