commit | 0c5a656a1322e137fa4a251f2ccc6c4022918c0a | [log] [tgz] |
---|---|---|
author | Rahul Chaudhry <rahulchaudhry@google.com> | Wed Jul 12 15:36:32 2017 -0700 |
committer | Rahul Chaudhry <rahulchaudhry@google.com> | Thu Jul 13 22:42:43 2017 +0000 |
tree | 1649017ddf8e78a3860ea449317d0a1d78042a41 | |
parent | fe948798823b679925aed6b60efec51b9af7dd09 [diff] |
Disable linker PIE support with copy reloc. This feature gets enabled with binutils 2.27 upgrade, but breaks unittests in chromium os: - https://bugs.chromium.org/p/chromium/issues/detail?id=738188 This is because of the upstream gcc bug for which the patches were not backported to 4.9.x branches: - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248 BUG: None TEST: Chromium OS unittests pass again. Change-Id: I9827cbe56378727f979991993d06de0b4c6b5478
The following process is used to build the GCC that is used by both the Android platfrom and the NDK.
Both Linux and Windows toolchains are built on Linux machines. Windows host binaries are built with mingw. Building binaries for Mac OS X should be built using 10.8 to ensure compatibility with Android's minimum supported hosts.
Check out the branch gcc
repo init -u https://android.googlesource.com/platform/manifest -b gcc # Googlers, use repo init -u \ persistent-https://android.git.corp.google.com/platform/manifest \ -b gcc
Additional Linux Dependencies (available from apt):
Mac OS X also requires Xcode.
# Additional options and toolchain names will be show with --help. $ python build.py --toolchain TOOLCHAIN_NAME
$ python build.py --system windows TOOLCHAIN_NAME