Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | the original guess algorithm is broken for many archs |
| 2 | for example, the following two would break: |
| 3 | arm-linux-gnueabi --> sys=gnueabi |
| 4 | x86_64-unknown-pc-linux-gnu --> sys = pc-linux-gnu |
| 5 | |
| 6 | use a simpler scheme here and hope it works for all the cases |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | 7/30/2010 - created by Qing He <qing.he@intel.com> |
| 11 | |
| 12 | diff --git a/lib/configure b/lib/configure |
| 13 | index 4318b05..84f6acb 100755 |
| 14 | --- a/lib/configure |
| 15 | +++ b/lib/configure |
| 16 | @@ -53,20 +53,7 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 17 | sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 18 | echo " $host $rel $cpu $sys" |
| 19 | |
| 20 | -if [ "$host" = "linux--gnueabi" ] |
| 21 | -then |
| 22 | - sys=linux |
| 23 | -fi |
| 24 | - |
| 25 | -if [ "$host" = "linux--uclibc" ] |
| 26 | -then |
| 27 | - sys=linux |
| 28 | -fi |
| 29 | - |
| 30 | -if [ "$host" = "linux--uclibceabi" ] |
| 31 | -then |
| 32 | - sys=linux |
| 33 | -fi |
| 34 | +{ echo "$host" | grep linux; } && sys=linux |
| 35 | |
| 36 | c=config.h |
| 37 | m=config.mk |