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>
This commit is contained in:
parent
e3be4654a1
commit
435917735a
@ -282,6 +282,9 @@ wrap_bins() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case "${cmd##*/}" in
|
case "${cmd##*/}" in
|
||||||
|
*-gcc-ar|*-gcc-nm|*-gcc-ranlib)
|
||||||
|
wrap_bin_other "$out" "$bin"
|
||||||
|
;;
|
||||||
*-*cc|*-*cc-*|*-*++|*-*++-*|*-cpp)
|
*-*cc|*-*cc-*|*-*++|*-*++-*|*-cpp)
|
||||||
wrap_bin_cc "$out" "$bin"
|
wrap_bin_cc "$out" "$bin"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user