# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../ghc/host-triplet.patch # Copyright (C) 2010 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- ghc-6.12.1/configure.vanilla 2010-01-03 19:31:54.000000000 +0100 +++ ghc-6.12.1/configure 2010-01-03 19:35:03.000000000 +0100 @@ -2494,8 +2494,8 @@ BuildPlatform=$build BuildArch=`echo "$build" | sed 's/-.*//'` -BuildVendor=`echo "$build" | sed -e 's/.*-\(.*\)-.*/\1/'` -BuildOS=`echo "$build" | sed 's/.*-//'` +BuildVendor=`echo "$build" | sed -e 's/[^-]*-\([^-]*\)-.*/\1/'` +BuildOS=`echo "$build" | sed -e 's/[^-]*-[^-]*-\([^-]*\)\(-.*\)*/\1/'` BuildPlatform_CPP=`echo "$BuildPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'` BuildArch_CPP=` echo "$BuildArch" | sed -e 's/\./_/g' -e 's/-/_/g'` BuildVendor_CPP=` echo "$BuildVendor" | sed -e 's/\./_/g' -e 's/-/_/g'` @@ -2506,8 +2506,8 @@ HostPlatform=$host HostArch=`echo "$host" | sed 's/-.*//'` -HostVendor=`echo "$host" | sed -e 's/.*-\(.*\)-.*/\1/'` -HostOS=`echo "$host" | sed 's/.*-//'` +HostVendor=`echo "$host" | sed -e 's/[^-]*-\([^-]*\)-.*/\1/'` +HostOS=`echo "$host" | sed -e 's/[^-]*-[^-]*-\([^-]*\)\(-.*\)*/\1/'` HostPlatform_CPP=`echo "$HostPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'` HostArch_CPP=` echo "$HostArch" | sed -e 's/\./_/g' -e 's/-/_/g'` HostVendor_CPP=` echo "$HostVendor" | sed -e 's/\./_/g' -e 's/-/_/g'` @@ -2519,8 +2519,8 @@ TargetPlatform=$target TargetArch=`echo "$target" | sed 's/-.*//'` -TargetVendor=`echo "$target" | sed -e 's/.*-\(.*\)-.*/\1/'` -TargetOS=`echo "$target" | sed 's/.*-//'` +TargetVendor=`echo "$target" | sed -e 's/[^-]*-\([^-]*\)-.*/\1/'` +TargetOS=`echo "$target" | sed -e 's/[^-]*-[^-]*-\([^-]*\)\(-.*\)*/\1/'` TargetPlatform_CPP=`echo "$TargetPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'` TargetArch_CPP=` echo "$TargetArch" | sed -e 's/\./_/g' -e 's/-/_/g'` TargetVendor_CPP=` echo "$TargetVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`