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: |
fb61490a1152d8813bbf1016212f4c94 |
| 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 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
#! /bin/bash
CCROOT="${HOME}/root/cross-compilers"
SETUP_CC="${CCROOT}/setup-cc"
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
cc_platform="$(echo "${platform}" | cut -f 1 -d '@')"
tcl_platform="$(echo "${platform}" | cut -f 2 -d '@')"
opts=''
setup_cc_opts=''
configure_opts=''
if echo "${cc_platform}" | grep ',' >/dev/null; then
opts="$(echo "${cc_platform}" | cut -f 2- -d ',' | sed 's@,@ @g')"
cc_platform="$(echo "${cc_platform}" | cut -f 1 -d ',')"
fi
case "${tcl_platform}" in
*64)
is64bit='1'
;;
*)
is64bit='0'
;;
esac
for opt in $opts; do
case "${opt}" in
64)
setup_cc_opts="${setup_cc_opts} 64"
is64bit='1'
;;
esac
done
if [ "${is64bit}" = '1' ]; then
configure_opts="${configure_opts} --enable-64bit"
fi
(
eval "$("${SETUP_CC}" "${cc_platform}" ${setup_cc_opts})"
FORCE_PLATFORM="${tcl_platform}"
export FORCE_PLATFORM
./build_all.sh clean
./build_all.sh --host="${cc_platform}" ${configure_opts}
)
done
|
Modified server/buildpkgs/common.sh from [2a46940c88] to [0d787c6d5e].
1 2 | #! /bin/bash | | > > > | > > > > > > > > > > > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#! /bin/bash
function setup_tcl () {
local vers envfile
for vers in "$@"; do
envfile="${PROJROOTDIR}/platform.magic.env-8.5"
if [ ! -f "${envfile}" ]; then
continue
fi
source "${envfile}"
break
done
}
function setup_tcl85 () {
setup_tcl 8.5 8.4
}
function setup_tcl84 () {
setup_tcl 8.4 8.5
}
function not_platforms () {
local platform
for platform in "$@"; do
if [ "${PLATFORM}" = "${platform}" ]; then
|
| ︙ | ︙ |