Check-in [fb61490a11]
Overview
Comment:Updated to use Tcl 8.5/8.4 depending on which is built Added script to cross-compile for various platforms
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fb61490a1152d8813bbf1016212f4c940ce4bf83
User & Date: rkeene on 2011-09-10 22:28:46
Other Links: manifest | tags
Context
2011-09-10
22:29
Fixed some bugs in cross-compile builds check-in: 9fbb0ef3ca user: rkeene tags: trunk
22:28
Updated to use Tcl 8.5/8.4 depending on which is built Added script to cross-compile for various platforms check-in: fb61490a11 user: rkeene tags: trunk
22:27
Updated to support linking against Tk 8.5 if Tk 8.4 is not available check-in: 54623be7eb user: rkeene tags: trunk
Changes

Added server/buildpkgs/build-all-platforms.sh version [cf2c69f90a].

            1  +#! /bin/bash
            2  +
            3  +CCROOT="${HOME}/root/cross-compilers"
            4  +SETUP_CC="${CCROOT}/setup-cc"
            5  +
            6  +for platform in i386-pc-solaris2.10@solaris2.10-ix86 i386-pc-solaris2.10,64@solaris2.10-x86_64 mipsel-unknown-linux-uclibc@linux-glibc2.0-mipsel sparc-sun-solaris2.10@solaris2.10-sparc sparc-sun-solaris2.10,64@solaris2.10-sparc64 x86_64-unknown-freebsd8@freebsd8-x86_64 x86_64-unknown-netbsd5@netbsd5-x86_64; do
            7  +	cc_platform="$(echo "${platform}" | cut -f 1 -d '@')"
            8  +	tcl_platform="$(echo "${platform}" | cut -f 2 -d '@')"
            9  +	opts=''
           10  +	setup_cc_opts=''
           11  +	configure_opts=''
           12  +
           13  +	if echo "${cc_platform}" | grep ',' >/dev/null; then
           14  +		opts="$(echo "${cc_platform}" | cut -f 2- -d ',' | sed 's@,@ @g')"
           15  +		cc_platform="$(echo "${cc_platform}" | cut -f 1 -d ',')"
           16  +	fi
           17  +
           18  +	case "${tcl_platform}" in
           19  +		*64)
           20  +			is64bit='1'
           21  +			;;
           22  +		*)
           23  +			is64bit='0'
           24  +			;;
           25  +	esac
           26  +
           27  +	for opt in $opts; do
           28  +		case "${opt}" in
           29  +			64)
           30  +				setup_cc_opts="${setup_cc_opts} 64"
           31  +				is64bit='1'
           32  +				;;
           33  +		esac
           34  +	done
           35  +
           36  +	if [ "${is64bit}" = '1' ]; then
           37  +		configure_opts="${configure_opts} --enable-64bit"
           38  +	fi
           39  +
           40  +	(
           41  +		eval "$("${SETUP_CC}" "${cc_platform}" ${setup_cc_opts})"
           42  +
           43  +		FORCE_PLATFORM="${tcl_platform}"
           44  +		export FORCE_PLATFORM
           45  +
           46  +		./build_all.sh clean
           47  +
           48  +		./build_all.sh --host="${cc_platform}" ${configure_opts}
           49  +	)
           50  +done
           51  +

Modified server/buildpkgs/common.sh from [2a46940c88] to [0d787c6d5e].

     1      1   #! /bin/bash
            2  +
            3  +function setup_tcl () {
            4  +	local vers envfile
            5  +
            6  +	for vers in "$@"; do
            7  +		envfile="${PROJROOTDIR}/platform.magic.env-8.5"
            8  +
            9  +		if [ ! -f "${envfile}" ]; then
           10  +			continue
           11  +		fi
           12  +
           13  +		source "${envfile}"
           14  +
           15  +		break
           16  +	done
           17  +}
     2     18   
     3     19   function setup_tcl85 () {
     4         -	source "${PROJROOTDIR}/platform.magic.env-8.5" 2>/dev/null
           20  +	setup_tcl 8.5 8.4
     5     21   }
     6     22   
     7     23   function setup_tcl84 () {
     8         -	source "${PROJROOTDIR}/platform.magic.env-8.4" 2>/dev/null
           24  +	setup_tcl 8.4 8.5
     9     25   }
    10     26   
    11     27   function not_platforms () {
    12     28   	local platform
    13     29   
    14     30   	for platform in "$@"; do
    15     31   		if [ "${PLATFORM}" = "${platform}" ]; then