Skip to content

Commit 4359177

Browse files
gustavoniheirobimarko
authored andcommitted
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: openwrt#21757 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent e3be465 commit 4359177

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/ext-toolchain.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ wrap_bins() {
282282
fi
283283

284284
case "${cmd##*/}" in
285+
*-gcc-ar|*-gcc-nm|*-gcc-ranlib)
286+
wrap_bin_other "$out" "$bin"
287+
;;
285288
*-*cc|*-*cc-*|*-*++|*-*++-*|*-cpp)
286289
wrap_bin_cc "$out" "$bin"
287290
;;

0 commit comments

Comments
 (0)