Index: build/config/gcc/BUILD.gn |
diff --git a/build/config/gcc/BUILD.gn b/build/config/gcc/BUILD.gn |
index 47bcc0b61243a0b84c61c43b229cc0b935c22b0a..110f1cceb58b7c4d0f9b5893dcf0ee1acc377a6d 100644 |
--- a/build/config/gcc/BUILD.gn |
+++ b/build/config/gcc/BUILD.gn |
@@ -31,6 +31,7 @@ config("executable_ldconfig") { |
# Want to pass "\$". GN will re-escape as required for ninja. |
"-Wl,-rpath=\$ORIGIN/", |
"-Wl,-rpath-link=", |
+ "-Wl,-z,origin", |
# 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. |