aboutsummaryrefslogtreecommitdiff
path: root/scripts/config.sub
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/config.sub')
-rwxr-xr-xscripts/config.sub1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/config.sub b/scripts/config.sub
index 76b880fb1f..28c8d00f38 100755
--- a/scripts/config.sub
+++ b/scripts/config.sub
@@ -108,6 +108,7 @@ case $maybe_os in
nto-qnx* | linux-gnu*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ basic_machine=`echo $basic_machine | sed 's/-unknown//'`
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`