OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
6 | 6 |
7 config("sdk") { | 7 config("sdk") { |
8 if (sysroot != "") { | 8 if (sysroot != "") { |
9 cflags = [ "--sysroot=" + sysroot ] | 9 cflags = [ "--sysroot=" + sysroot ] |
10 ldflags = [ "--sysroot=" + sysroot ] | 10 ldflags = [ "--sysroot=" + sysroot ] |
11 | 11 |
12 # Need to get some linker flags out of the sysroot. | 12 # Need to get some linker flags out of the sysroot. |
13 ldflags += [ exec_script("sysroot_ld_path.py", | 13 ldflags += [ exec_script("sysroot_ld_path.py", |
14 [ | 14 [ |
15 rebase_path("//build/linux/sysroot_ld_path.sh", | 15 rebase_path("//build/linux/sysroot_ld_path.sh", |
16 root_build_dir), | 16 root_build_dir), |
17 sysroot, | 17 sysroot, |
18 ], | 18 ], |
19 "value") ] | 19 "value") ] |
| 20 |
| 21 # When using the pulled wheezy sysroot with gcc, we have to specify these |
| 22 # excplicitly. |
| 23 if (dart_use_wheezy_sysroot && !is_clang) { |
| 24 cflags += [ |
| 25 "-I=/usr/include/c++/4.6", |
| 26 "-I=/usr/include/c++/4.6/i486-linux-gnu", |
| 27 ] |
| 28 } |
20 } | 29 } |
21 } | 30 } |
OLD | NEW |