From: Gustavo Henrique Nihei Date: Fri, 23 Jan 2026 21:04:59 +0000 (-0300) Subject: ext-toolchain: fix wrapper for gcc-ar, gcc-nm, gcc-ranlib X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=435917735ab8a9ba23300dda77aaace13fc16d96;p=thirdparty%2Fopenwrt.git ext-toolchain: fix wrapper for gcc-ar, gcc-nm, gcc-ranlib The pattern '*-*cc-*' incorrectly matches these tools because their names contain 'cc-'. This causes them to receive compiler CFLAGS, breaking builds with 'ar: two different operation options specified'. Signed-off-by: Gustavo Henrique Nihei Link: https://github.com/openwrt/openwrt/pull/21757 Signed-off-by: Robert Marko --- diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh index 2794d2e8eff..8b38d177866 100755 --- a/scripts/ext-toolchain.sh +++ b/scripts/ext-toolchain.sh @@ -282,6 +282,9 @@ wrap_bins() { fi case "${cmd##*/}" in + *-gcc-ar|*-gcc-nm|*-gcc-ranlib) + wrap_bin_other "$out" "$bin" + ;; *-*cc|*-*cc-*|*-*++|*-*++-*|*-cpp) wrap_bin_cc "$out" "$bin" ;;