e33d023fa0
doesn't show these formatting changes as diffs. Change-Id: I69ccbf4adabc66d88371cece785a2c1bce60f133 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138962 Reviewed-by: Ryan Macnak <rmacnak@google.com>
29 lines
918 B
Plaintext
29 lines
918 B
Plaintext
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/android/config.gni")
|
|
import("//build/config/sysroot.gni")
|
|
|
|
config("sdk") {
|
|
if (sysroot != "") {
|
|
cflags = [ "--sysroot=" + sysroot ]
|
|
ldflags = [ "--sysroot=" +
|
|
rebase_path("$android_ndk_root/$android_sysroot_subdir") ]
|
|
|
|
# Need to get some linker flags out of the sysroot.
|
|
sysroot_ld_path = rebase_path("//build/config/linux/sysroot_ld_path.py")
|
|
ldflags += [ exec_script(sysroot_ld_path,
|
|
[
|
|
rebase_path("//build/linux/sysroot_ld_path.sh"),
|
|
sysroot,
|
|
],
|
|
"value") ]
|
|
}
|
|
}
|
|
|
|
config("executable_config") {
|
|
cflags = [ "-fPIE" ]
|
|
ldflags = [ "-pie" ]
|
|
}
|