OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env bash |
| 2 # |
| 3 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. |
| 6 |
| 7 # Sets the compiler environment variables to use a downloaded wheezy sysroot |
| 8 # when building Dart with architecture x64. |
| 9 # Run this in the same working directory that you have run |
| 10 # sdk/tools/download_chromium_sysroot.sh in. |
| 11 # Must be sourced, not run in a subshell, to modify the environment. |
| 12 # Run with the command ". sdk/tools/set_x64_sysroot.sh" |
| 13 # Only tested and used on Ubuntu trusty linux. Used to build dart with |
| 14 # no requirement for glibc greater than version 2.14. |
| 15 |
| 16 export CXXFLAGS="--sysroot=$PWD/build/linux/debian_wheezy_amd64-sysroot -I=/usr/
include/c++/4.6 -I=/usr/include/c++/4.6/x86_64-linux-gnu" |
| 17 |
| 18 export LDFLAGS=--sysroot=$PWD/build/linux/debian_wheezy_amd64-sysroot |
| 19 export CFLAGS=--sysroot=$PWD/build/linux/debian_wheezy_amd64-sysroot |
OLD | NEW |