Do not mangle Cygwin tuples.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Nov 19 20:16:54 2008 +0000 (2008-11-19)
changeset 1062a435f445d477
parent 1061 1ec5c7616fc3
child 1063 1b4b6359a329
Do not mangle Cygwin tuples.

/trunk/scripts/crosstool.sh | 5 5 0 0 +++++
1 file changed, 5 insertions(+)
scripts/crosstool.sh
     1.1 --- a/scripts/crosstool.sh	Tue Nov 18 12:39:14 2008 +0000
     1.2 +++ b/scripts/crosstool.sh	Wed Nov 19 20:16:54 2008 +0000
     1.3 @@ -299,15 +299,20 @@
     1.4      # Make BUILD and HOST full-fledge four-part tuples (gcc -dumpmachine
     1.5      # might be only three-part tuple, and I don't know wether config.guess
     1.6      # can return 3-part tuples...)
     1.7 +    # Although Cygwin is not (yet) a supported build- or host-system, take
     1.8 +    # its /peculiarity/ into acount right now, this will alleviate the
     1.9 +    # burden of fighting bugs later, if Cygwin ever becomes supported.
    1.10      case "${CT_BUILD}" in
    1.11          *-*-*-*-*)  CT_Abort "Unexpected 5-part (or more) build tuple: '${CT_BUILD}'";;
    1.12          *-*-*-*)    ;;
    1.13 +        *-*-cygwin) ;; # Don't mangle cygwin build tuples
    1.14          *-*-*)      CT_BUILD="${CT_BUILD/-/-unknown-}";;
    1.15          *)          CT_Abort "Unepxected 1- or 2-part build tuple: '${CT_BUILD}'";;
    1.16      esac
    1.17      case "${CT_HOST}" in
    1.18          *-*-*-*-*)  CT_Abort "Unexpected 5-part (or more) host tuple: '${CT_HOST}'";;
    1.19          *-*-*-*)    ;;
    1.20 +        *-*-cygwin) ;; # Don't mangle cygwin host tuples
    1.21          *-*-*)      CT_HOST="${CT_HOST/-/-unknown-}";;
    1.22          *)          CT_Abort "Unepxected 1- or 2-part host tuple: '${CT_HOST}'";;
    1.23      esac