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"