summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-19 20:16:54 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-19 20:16:54 (GMT)
commit195830c10674f99e0c4cdfcae83d9b435582424a (patch)
treeace56697ff98bda04fefcbcb32d83fb4b0f19787
parentbd8804ec58c5919936d9073f028044fdf5f018ba (diff)
Do not mangle Cygwin tuples.
/trunk/scripts/crosstool.sh | 5 5 0 0 +++++ 1 file changed, 5 insertions(+)
-rwxr-xr-xscripts/crosstool.sh5
1 files changed, 5 insertions, 0 deletions
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