From ae7c1017afdfdb2b45e0b9f4618097479f375c7b Mon Sep 17 00:00:00 2001 From: OPPEN321 Date: Thu, 6 Nov 2025 09:37:32 +0800 Subject: [PATCH] Update 05-fix-source.sh --- scripts/05-fix-source.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/05-fix-source.sh b/scripts/05-fix-source.sh index 88b570e..082ee7f 100644 --- a/scripts/05-fix-source.sh +++ b/scripts/05-fix-source.sh @@ -14,14 +14,14 @@ rm -rf package/network/utils/xdp-tools git clone https://$github/sbwml/package_network_utils_xdp-tools package/network/utils/xdp-tools # fix gcc14 -if [ "$USE_GCC14" = y ] || [ "$USE_GCC15" = y ]; then +if [ "$gcc" = 14 ] || [ "$gcc" = 15 ]; then # linux-atm rm -rf package/network/utils/linux-atm git clone https://$github/sbwml/package_network_utils_linux-atm package/network/utils/linux-atm fi # fix gcc-15 -if [ "$USE_GCC15" = y ]; then +if [ "$gcc" = 15 ]; then sed -i '/TARGET_CFLAGS/ s/$/ -Wno-error=unterminated-string-initialization/' package/libs/mbedtls/Makefile # elfutils curl -s $mirror/openwrt/patch/openwrt-6.x/gcc-15/elfutils/901-backends-fix-string-initialization-error-on-gcc15.patch > package/libs/elfutils/patches/901-backends-fix-string-initialization-error-on-gcc15.patch @@ -34,7 +34,7 @@ if [ "$USE_GCC15" = y ]; then fi # fix gcc-15.0.1 C23 -if [ "$USE_GCC15" = y ]; then +if [ "$gcc" = 15 ]; then # gmp mkdir -p package/libs/gmp/patches curl -s $mirror/openwrt/patch/openwrt-6.x/gcc-15-c23/gmp/001-fix-build-with-gcc-15.patch > package/libs/gmp/patches/001-fix-build-with-gcc-15.patch