Check-in [2ba9012dfc]
Overview
Comment:Updated to no longer use fake "uname" to trick builds for Tcl 8.4.19
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2ba9012dfce0962e5e91f05f053fc9b6cd2cfbe7
User & Date: rkeene on 2012-05-14 16:57:23
Other Links: manifest | tags
Context
2012-06-30
15:34
Updated to statically link against libgcc when building a shared object (KitDLL) check-in: 0432734c0a user: rkeene tags: trunk
2012-05-14
16:57
Updated to no longer use fake "uname" to trick builds for Tcl 8.4.19 check-in: 2ba9012dfc user: rkeene tags: trunk
2012-05-13
18:50
Updated to use standard cross-compile script for Linux/MIPS target

Updated to include "mips" support in fake uname

Updated to not use fake uname for "mips" check-in: aa00b0ada2 user: rkeene tags: trunk

Changes

Deleted build/fake-bin/uname version [482a7c7be3].

     1         -#! /usr/bin/env bash
     2         -
     3         -if [ "$1" == "--fake" ]; then
     4         -	echo "true"
     5         -
     6         -	exit 0
     7         -fi
     8         -
     9         -# Some systems do not compile well with this fake uname in place
    10         -# provide the real uname for them.
    11         -case "${CROSS}" in
    12         -	mipsel-unknown-linux-uclibc)
    13         -		unset CROSS
    14         -		;;
    15         -esac
    16         -
    17         -if [ -z "${CROSS}" ]; then
    18         -	# If not cross compiling, revert to system uname
    19         -	while [ "$(uname --fake 2>/dev/null)" == "true" -a -n "${PATH}" ]; do
    20         -		PATH="$(echo "${PATH}" | /usr/bin/sed 's@^[^:]*$@@;s@^[^:]*:@@')"
    21         -
    22         -		export PATH
    23         -	done
    24         -
    25         -	if [ -z "${PATH}" ]; then
    26         -		exit 1
    27         -	fi
    28         -
    29         -	exec uname "$@"
    30         -fi
    31         -
    32         -CROSS="$(echo "${CROSS}" | sed 's@-*$@@')"
    33         -
    34         -# Determine release information
    35         -case "${CROSS}" in
    36         -	*-hpux11*)
    37         -		sysname="HP-UX"
    38         -		sysrelease="$(echo "${CROSS}" | sed 's@^.*-hpux@@')"
    39         -		;;
    40         -	*-solaris2*)
    41         -		sysname="SunOS"
    42         -		sysrelease="$(echo "${CROSS}" | sed 's@^.*-solaris@@;s@^2@5@')"
    43         -		;;
    44         -	*-linux*)
    45         -		sysname="Linux"
    46         -		sysrelease="2.6.5"
    47         -		;;
    48         -	*-netbsd*)
    49         -		sysname="NetBSD"
    50         -		sysrelease="$(echo "${CROSS}" | sed 's@^.*-netbsd@@;s@$@.0@')"
    51         -		;;
    52         -	*-freebsd*)
    53         -		sysname="FreeBSD"
    54         -		sysrelease="$(echo "${CROSS}" | sed 's@^.*-freebsd@@;s@$@.0-RELEASE@')"
    55         -		;;
    56         -esac
    57         -
    58         -# Determine machine information
    59         -case "${CROSS}" in
    60         -	hppa64-*-hpux*)
    61         -		sysmachine="9000/859"
    62         -		;;
    63         -	i386-*-solaris*)
    64         -		sysmachine="i86pc"
    65         -		;;
    66         -	sparc-*-solaris*)
    67         -		sysmachine="sun4u"
    68         -		;;
    69         -	x86_64-*)
    70         -		sysmachine="x86_64"
    71         -		;;
    72         -	i?86-*)
    73         -		sysmachine="i686"
    74         -		;;
    75         -	ia64-*)
    76         -		sysmachine="ia64"
    77         -		;;
    78         -	arm-*|armel-*|armeb-*)
    79         -		sysmachine="armv7l"
    80         -		;;
    81         -	mipsel-*|mipseb-*)
    82         -		sysmachine="mips"
    83         -		;;
    84         -esac
    85         -
    86         -for arg in $(echo "$@" | sed 's@.@ & @g'); do
    87         -	case "${arg}" in
    88         -		-)
    89         -			continue
    90         -			;;
    91         -		r)
    92         -			retval="${retval} ${sysrelease}"
    93         -			;;
    94         -		s)
    95         -			retval="${retval} ${sysname}"
    96         -			;;
    97         -		m)
    98         -			retval="${retval} ${sysmachine}"
    99         -			;;
   100         -		p)
   101         -			# XXX
   102         -			retval="${retval} ${syscpu}"
   103         -			;;
   104         -		n)
   105         -			retval="${retval} $(hostname)"
   106         -			;;
   107         -		a)
   108         -			retval="${sysname} $(hostname) ${sysrelease} ${sysversion} ${sysmachine} ${syscpu}"
   109         -			;;
   110         -	esac
   111         -done
   112         -
   113         -echo "${retval}" | sed 's@^  *@@;s@  *$@@'

Modified build/make-kit-crosscompile from [bf7d466ffa] to [b5df8646bf].

     5      5   
     6      6   	exit 1
     7      7   fi
     8      8   
     9      9   CCROOT="${HOME}/root/cross-compilers/${CROSS}"
    10     10   CCROOTBIN="${CCROOT}/bin"
    11     11   
    12         -PATH="$(pwd)/build/fake-bin:${PATH}:${CCROOTBIN}"
           12  +PATH="${PATH}:${CCROOTBIN}"
    13     13   AR="${CCROOTBIN}/${CROSS}-ar"
    14     14   CC="${CCROOTBIN}/${CROSS}-gcc ${CC_ADD}"
    15     15   CXX="${CCROOTBIN}/${CROSS}-g++ ${CC_ADD}"
    16     16   RANLIB="${CCROOTBIN}/${CROSS}-ranlib"
    17     17   if [ -z "${STRIP}" ]; then
    18     18   	STRIP="${CCROOTBIN}/${CROSS}-strip"
    19     19   fi
    20     20   export PATH AR CC CXX RANLIB STRIP
    21     21   
    22     22   ./kitcreator "$@" --host="${CROSS}"