summaryrefslogtreecommitdiff
path: root/docs/android.rst
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2021-01-28 08:27:06 +0100
committerMarge Bot <eric+marge@anholt.net>2021-02-08 14:19:06 +0000
commita4cb96d12b38c663533f135ae4259d8bd56f6a75 (patch)
tree9c093fa9559d2219de4a25e0a6a8a551309ae719 /docs/android.rst
parent4f4bb72745ca1fa507749843d32f320f879cf1b7 (diff)
downloadmesa-a4cb96d12b38c663533f135ae4259d8bd56f6a75.tar.gz
ci: Fix selection of linker in Android builds
Otherwise, Clang will error out when it doesn't link: Compiler stderr: clang: error: argument unused during compilation: '-fuse-ld=lld' [-Werror,-Wunused-command-line-argument] When that happens when Meson is checking for the presence of macros in sys/sysmacros.h, that file won't be included resulting in the following errors: ld.lld: error: undefined symbol: makedev ld.lld: error: undefined symbol: major ld.lld: error: undefined symbol: minor Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Acked-by: Michel Dänzer <mdaenzer@redhat.com> Acked-by: Eric Anholt <eric@anholt.net> Gitlab: #4137 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8757>
Diffstat (limited to 'docs/android.rst')
-rw-r--r--docs/android.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/android.rst b/docs/android.rst
index 1d41d32878e..f08c4fb1729 100644
--- a/docs/android.rst
+++ b/docs/android.rst
@@ -20,8 +20,10 @@ Then, create your meson cross file to use it, something like this
[binaries]
ar = 'NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar'
- c = ['ccache', 'NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang', '-fuse-ld=lld']
- cpp = ['ccache', 'NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++', '-fuse-ld=lld', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-static-libstdc++']
+ c = ['ccache', 'NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang']
+ cpp = ['ccache', 'NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-static-libstdc++']
+ c_ld = 'lld'
+ cpp_ld = 'lld'
strip = 'NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip'
# Android doesn't come with a pkg-config, but we need one for meson to be happy not
# finding all the optional deps it looks for. Use system pkg-config pointing at a