From a4cb96d12b38c663533f135ae4259d8bd56f6a75 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 28 Jan 2021 08:27:06 +0100 Subject: [PATCH] ci: Fix selection of linker in Android builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Michel Dänzer Acked-by: Eric Anholt Gitlab: #4137 Part-of: --- .gitlab-ci/create-android-cross-file.sh | 6 ++++-- docs/android.rst | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci/create-android-cross-file.sh b/.gitlab-ci/create-android-cross-file.sh index 4590ce172a9..99ad5b98b46 100644 --- a/.gitlab-ci/create-android-cross-file.sh +++ b/.gitlab-ci/create-android-cross-file.sh @@ -16,8 +16,10 @@ arch2=${5:-$2} cat >$cross_file <