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 <[email protected]>
Signed-off-by: Nylon Chen <[email protected]>
---
 scripts/ext-toolchain.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

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"
                                        ;;
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to