cross-files/android: Update paths and args for latest NDK

-fuse-ld=gold was always needed, but we missed it while adding this.

The rest are new in NDK r21.
This commit is contained in:
Nirbheek Chauhan 2020-02-21 22:12:15 +05:30
parent ee4108a086
commit 7716ea303a

View file

@ -5,12 +5,16 @@ cpu = 'aarch64'
endian = 'little' endian = 'little'
[properties] [properties]
c_args = ['--sysroot', '/opt/android-arm64-api28/sysroot'] sys_root = '/path/to/android-ndk-r21/sysroot'
cpp_args = ['--sysroot', '/opt/android-arm64-api28/sysroot'] c_link_args = ['-fuse-ld=gold']
cpp_link_args = ['-fuse-ld=gold']
# Starting with 0.53.1, you can replace the above *_link_args:
# c_ld = 'gold'
# cpp_ld = 'gold'
[binaries] [binaries]
c = '/opt/android-arm64-api28/bin/aarch64-linux-android-clang' c = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang'
cpp = '/opt/android-arm64-api28/bin/aarch64-linux-android-clang++' cpp = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang++'
ar = '/opt/android-arm64-api28/bin/aarch64-linux-android-ar' ar = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar'
strip = '/opt/android-arm64-api28/bin/aarch64-linux-android-strip' strip = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip'
pkgconfig = 'false' pkgconfig = 'false'