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

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

Issue 149163005: Work on GN iOS build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: build/config/linux/BUILD.gn
diff --git a/build/config/linux/BUILD.gn b/build/config/linux/BUILD.gn
index 29b446ae0b18f8893ae6a7e3325d93bd614e3169..8d47635d208425150e7718d789ca42a6178ee559 100644
--- a/build/config/linux/BUILD.gn
+++ b/build/config/linux/BUILD.gn
@@ -3,6 +3,19 @@
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
+import("//build/config/sysroot.gni")
+
+config("sdk") {
+ if (sysroot != "") {
+ cflags += [ "--sysroot=" + sysroot ]
+ ldflags += [ "--sysroot=" + sysroot ]
+
+ # Need to get some linker flags out of the sysroot.
+ ldflags += [ exec_script("sysroot_ld_path.py",
+ [ rebase_path("sysroot_ld_path.sh", ".", root_build_dir), sysroot ],
+ "value") ]
+ }
+}
# Sets up the dynamic library search path to include our "lib" directory.
config("executable_ldconfig") {

Powered by Google App Engine
This is Rietveld 408576698