tag | e0572f9a2772290b6f42be24243e0837ba546cda | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Jan 16 14:45:22 2019 -0800 |
object | ef58803bb1c5f70d34705a4698b9a97851d430b1 |
Android NDK r19 Beta 2 (build 5160253)
commit | ef58803bb1c5f70d34705a4698b9a97851d430b1 | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <pirama@google.com> | Fri Aug 31 08:44:28 2018 -0700 |
committer | Pirama Arumuga Nainar <pirama@google.com> | Fri Aug 31 10:57:47 2018 -0700 |
tree | 198a1688cfd9b5193dfd504d00a09c60eb5fb84b | |
parent | a74813a825e49267faa0b2ba45e9cd4bd6ccf4f4 [diff] |
Build libgcc_s DLLs with additional linker flags Bug: http://b/113171785 This hacked up change passes security-related linker flags for libgcc_s DLLs. It should affect only Windows targets in gcc-4.8.3. There doesn't seem a way to pass separate LDFLAGS for 32- and 64-bit when running 'configure', so we'd end up without --high-entropy-va for the 64-bit DLL. Instead, this hacky change gets the behavior we want and is unlikely to regress. To be safe https://android-review.googlesource.com/c/toolchain/mingw/+/743702 also verifies that all DLLs built have the correct flags. Test: toolchain/mingw/build.sh Change-Id: I9d52e7b8cb449fcaf11c7f771761f11c7d35f99b
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