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

Unified Diff: build/config/posix/BUILD.gn

Issue 2900193003: Use relative path in -L and -Wl,-rpath-link (Closed)
Patch Set: don't print on empty Created 3 years, 7 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 | build/config/posix/sysroot_ld_path.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/posix/BUILD.gn
diff --git a/build/config/posix/BUILD.gn b/build/config/posix/BUILD.gn
index 11cad83d0755bdf1bd448c63355f422942fef144..057efb82a19e4de1127705f788ce841c0aa56c05 100644
--- a/build/config/posix/BUILD.gn
+++ b/build/config/posix/BUILD.gn
@@ -25,12 +25,19 @@ config("runtime_library") {
ldflags = cflags
# Need to get some linker flags out of the sysroot.
- ldflags += exec_script("sysroot_ld_path.py",
+ ld_paths = exec_script("sysroot_ld_path.py",
[
rebase_path("//build/linux/sysroot_ld_path.sh",
root_build_dir),
rebase_path(sysroot),
],
"list lines")
+ foreach(ld_path, ld_paths) {
+ ld_path = rebase_path(ld_path, root_build_dir)
+ ldflags += [
+ "-L" + ld_path,
+ "-Wl,-rpath-link=" + ld_path,
+ ]
+ }
}
}
« no previous file with comments | « no previous file | build/config/posix/sysroot_ld_path.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698