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

Nylon Chen nylon7 at andestech.com
Tue Jun 11 06:32:31 EDT 2019


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 at andestech.com>
Signed-off-by: Nylon Chen <nylon7 at andestech.com>
---
 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
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list