2016-08-10 14:04:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
2018-10-25 15:05:22 +00:00
|
|
|
# Sets the compiler environment variables to use a downloaded Debian sysroot
|
2016-08-10 14:04:03 +00:00
|
|
|
# when building Dart with architecture x64.
|
2018-10-25 15:05:22 +00:00
|
|
|
# Run this in the same working directory that you have run
|
2016-08-10 14:04:03 +00:00
|
|
|
# sdk/tools/download_chromium_sysroot.sh in.
|
|
|
|
# Must be sourced, not run in a subshell, to modify the environment.
|
|
|
|
# Run with the command ". sdk/tools/set_x64_sysroot.sh"
|
|
|
|
# Only tested and used on Ubuntu trusty linux. Used to build dart with
|
|
|
|
# no requirement for glibc greater than version 2.14.
|
|
|
|
|
2018-10-25 15:05:22 +00:00
|
|
|
export CXXFLAGS="--sysroot=$PWD/build/linux/debian_jessie_amd64-sysroot -I=/usr/include/c++/4.8 -I=/usr/include/c++/4.8/x86_64-linux-gnu"
|
2016-08-10 14:04:03 +00:00
|
|
|
|
2018-10-25 15:05:22 +00:00
|
|
|
export LDFLAGS=--sysroot=$PWD/build/linux/debian_jessie_amd64-sysroot
|
|
|
|
export CFLAGS=--sysroot=$PWD/build/linux/debian_jessie_amd64-sysroot
|