From ae8367fbd6eecf8e0f87afa5d78c463ea4680d0a Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Sun, 5 Sep 2021 14:07:10 +0300 Subject: [PATCH] use lld linker for android aarch64 architecture, fixes #144 --- scripts/function-android.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/function-android.sh b/scripts/function-android.sh index b602dc0..bc4775f 100755 --- a/scripts/function-android.sh +++ b/scripts/function-android.sh @@ -273,7 +273,7 @@ get_size_optimization_cflags() { arm64-v8a) case $1 in ffmpeg) - ARCH_OPTIMIZATION="${LINK_TIME_OPTIMIZATION_FLAGS} -fuse-ld=gold -O2 -ffunction-sections -fdata-sections" + ARCH_OPTIMIZATION="${LINK_TIME_OPTIMIZATION_FLAGS} -fuse-ld=lld -O2 -ffunction-sections -fdata-sections" ;; *) ARCH_OPTIMIZATION="-Os -ffunction-sections -fdata-sections" @@ -416,7 +416,7 @@ get_size_optimization_ldflags() { arm64-v8a) case $1 in ffmpeg) - echo "-Wl,--gc-sections ${LINK_TIME_OPTIMIZATION_FLAGS} -fuse-ld=gold -O2 -ffunction-sections -fdata-sections -finline-functions" + echo "-Wl,--gc-sections ${LINK_TIME_OPTIMIZATION_FLAGS} -fuse-ld=lld -O2 -ffunction-sections -fdata-sections -finline-functions" ;; *) echo "-Wl,--gc-sections -Os -ffunction-sections -fdata-sections"