mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
ext-toolchain: fix wrapper for gcc-ar, gcc-nm, gcc-ranlib
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
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 435917735a)
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>
This commit is contained in:
parent
45788a48c7
commit
cb209ad0d4
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue