diff --git a/toolchain/build.sh b/toolchain/build.sh index e5a4dee..69ec076 100644 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -164,6 +164,12 @@ elif [ "$model" = "OpenWrt_X86_64_v24.10" ]; then curl -s https://git.kejizero.online/zhao/files/raw/branch/main/toolchain/Configs/immortalwrt_x86_64.config > .config fi +# LTO +curl -s $mirror/generic/config-lto >> .config + +# mold +echo 'CONFIG_USE_MOLD=y' >> .config + # gcc14 & 15 if [ "$USE_GCC13" = y ]; then export USE_GCC13=y gcc_version=13