diff options
author | Dan Albert <danalbert@google.com> | 2019-01-08 13:53:08 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2019-01-08 15:11:50 -0800 |
commit | 313af60a779abbfc3c178846789d075ffb0b3393 (patch) | |
tree | 303f7d32970959c5b8f752622c1909ef031e98bc /build/tools | |
parent | ae88395cf08380c1a5b657c17ab54c31998215ee (diff) | |
download | ndk-313af60a779abbfc3c178846789d075ffb0b3393.tar.gz |
Default to -fno-addrsig.
-faddrsig causes Clang to create output that is not compatible with
GNU binutils. Override and document for r19; the driver will be fixed
in a future Clang update and we'll move to the LLVM tools when
they're ready.
Test: ./checkbuild.py && ./run_tests.py
Test: ndk-build -C $NDK/sources/third_party/shaderc \
NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk \
APP_PLATFORM=android-24 APP_STL:=c++_static libshaderc_combined
Bug: https://github.com/android-ndk/ndk/issues/884
Change-Id: Ifc709b804b4a071e84c097ecbc57675d2503aac0
Diffstat (limited to 'build/tools')
-rwxr-xr-x | build/tools/make_standalone_toolchain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/tools/make_standalone_toolchain.py b/build/tools/make_standalone_toolchain.py index 37cc4448a..ad70ddde2 100755 --- a/build/tools/make_standalone_toolchain.py +++ b/build/tools/make_standalone_toolchain.py @@ -130,6 +130,9 @@ def make_clang_scripts(install_dir, triple, api, windows): if arch == 'i686' and api < 24: flags += ' -mstackrealign' + # TODO: Remove when https://github.com/android-ndk/ndk/issues/884 is fixed. + flags += ' -fno-addrsig' + cxx_flags = str(flags) clang_path = os.path.join(install_dir, 'bin/clang') |