scripts/crosstool.sh
changeset 1062 a435f445d477
parent 1041 2573519c00d6
child 1064 492d939dbb19
     1.1 --- a/scripts/crosstool.sh	Thu Nov 13 18:22:23 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