[OpenWrt-Devel,3/4] ext-toolchain.sh: don't pass CFLAGS to gcc-* utilities
diff mbox series

Message ID 20190611103231.31851-1-nylon7@andestech.com
State New
Headers show
Series
  • Untitled series #113088
Related show

Commit Message

Nylon Chen June 11, 2019, 10:32 a.m. UTC
The current script passes CFLAGS parameters to gcc-* utilities,
but they can not identify CFLAGS parameters,
so following this script will fail package build

Signed-off-by: Che-Wei Chuang <cnoize@andestech.com>
Signed-off-by: Nylon Chen <nylon7@andestech.com>
---
 scripts/ext-toolchain.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch
diff mbox series

diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index ee7d9532f5..2720a509db 100755
--- a/scripts/ext-toolchain.sh
+++ b/scripts/ext-toolchain.sh
@@ -256,6 +256,15 @@  wrap_bins() {
 				fi
 
 				case "${cmd##*/}" in
+					*gcc-ar)
+						wrap_bin_other "$out" "$bin"
+					;;
+					*gcc-nm)
+						wrap_bin_other "$out" "$bin"
+					;;
+					*gcc-ranlib)
+						wrap_bin_other "$out" "$bin"
+					;;
 					*-*cc|*-*cc-*|*-*++|*-*++-*|*-cpp)
 						wrap_bin_cc "$out" "$bin"
 					;;