summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Henrique Nihei2026-01-23 21:04:59 +0000
committerRobert Marko2026-02-06 16:32:06 +0000
commit435917735ab8a9ba23300dda77aaace13fc16d96 (patch)
tree2cfe1b31a2a13baf697e5a1c8ec283618bd32f6b
parente3be4654a1f405985964d8b5e5add3c149f55fba (diff)
downloadnbd-435917735ab8a9ba23300dda77aaace13fc16d96.tar.gz
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 <gustavo.nihei@espressif.com> Link: https://github.com/openwrt/openwrt/pull/21757 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rwxr-xr-xscripts/ext-toolchain.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index 2794d2e8ef..8b38d17786 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"
;;