Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1056)

Unified Diff: gn/BUILD.gn

Issue 2339983005: GN: link executables with -rdynamic on Linux. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gn/BUILD.gn
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 75f8352e936e1c9a11e90f775a1dc1190ea03d0a..13fdb907faee4d8d5a761843e57db9391941bb25 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -153,7 +153,10 @@ config("executable") {
if (is_mac) {
ldflags = [ "-Wl,-rpath,@loader_path/." ]
} else if (is_linux) {
- ldflags = [ "-Wl,-rpath,\$ORIGIN" ]
+ ldflags = [
+ "-rdynamic",
+ "-Wl,-rpath,\$ORIGIN",
+ ]
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698