use lld linker for android aarch64 architecture, fixes #144

This commit is contained in:
Taner Sener 2021-09-05 14:07:10 +03:00
parent 3b06f7061c
commit ae8367fbd6

View File

@ -273,7 +273,7 @@ get_size_optimization_cflags() {
arm64-v8a) arm64-v8a)
case $1 in case $1 in
ffmpeg) 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" ARCH_OPTIMIZATION="-Os -ffunction-sections -fdata-sections"
@ -416,7 +416,7 @@ get_size_optimization_ldflags() {
arm64-v8a) arm64-v8a)
case $1 in case $1 in
ffmpeg) 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" echo "-Wl,--gc-sections -Os -ffunction-sections -fdata-sections"