diff options
| author | Gustavo Henrique Nihei | 2026-01-23 21:04:59 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-02-07 16:50:57 +0000 |
| commit | cb209ad0d480bb9180d4c49827f5edaa9f0a1958 (patch) | |
| tree | 8cb2ed04b99e31791cb48c972a703f929c704366 | |
| parent | 45788a48c7236564f98ba22852491fa2907951b3 (diff) | |
| download | openwrt-cb209ad0d480bb9180d4c49827f5edaa9f0a1958.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>
(cherry picked from commit 435917735ab8a9ba23300dda77aaace13fc16d96)
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Link: https://github.com/openwrt/openwrt/pull/21899
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rwxr-xr-x | scripts/ext-toolchain.sh | 3 |
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" ;; |