From 195830c10674f99e0c4cdfcae83d9b435582424a Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 19 Nov 2008 20:16:54 +0000 Subject: Do not mangle Cygwin tuples. /trunk/scripts/crosstool.sh | 5 5 0 0 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh index c38ec56..40dd01c 100755 --- a/scripts/crosstool.sh +++ b/scripts/crosstool.sh @@ -299,15 +299,20 @@ if [ -z "${CT_RESTART}" ]; then # Make BUILD and HOST full-fledge four-part tuples (gcc -dumpmachine # might be only three-part tuple, and I don't know wether config.guess # can return 3-part tuples...) + # Although Cygwin is not (yet) a supported build- or host-system, take + # its /peculiarity/ into acount right now, this will alleviate the + # burden of fighting bugs later, if Cygwin ever becomes supported. case "${CT_BUILD}" in *-*-*-*-*) CT_Abort "Unexpected 5-part (or more) build tuple: '${CT_BUILD}'";; *-*-*-*) ;; + *-*-cygwin) ;; # Don't mangle cygwin build tuples *-*-*) CT_BUILD="${CT_BUILD/-/-unknown-}";; *) CT_Abort "Unepxected 1- or 2-part build tuple: '${CT_BUILD}'";; esac case "${CT_HOST}" in *-*-*-*-*) CT_Abort "Unexpected 5-part (or more) host tuple: '${CT_HOST}'";; *-*-*-*) ;; + *-*-cygwin) ;; # Don't mangle cygwin host tuples *-*-*) CT_HOST="${CT_HOST/-/-unknown-}";; *) CT_Abort "Unepxected 1- or 2-part host tuple: '${CT_HOST}'";; esac -- cgit v0.10.2-6-g49f6