Check-in [cf14f9815a]
Overview
Comment:Build many kits
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cf14f9815adf003846a12db713dfd7647ea53831ef0a578136166d0917c36adb
User & Date: rkeene on 2019-01-17 16:53:43
Other Links: manifest | tags
Context
2019-01-22
17:40
Added vendoring of Tcl-only packages from Tcllib check-in: 3dc3a41cee user: rkeene tags: trunk
2019-01-17
16:53
Build many kits check-in: cf14f9815a user: rkeene tags: trunk
08:09
Require C99 support check-in: cdf6ed48c2 user: rkeene tags: trunk
Changes

Added build/kits/make-kit-all version [a0a85b158f].

























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#! /usr/bin/env bash

platforms=(
	x86_64-generic-linux-musl/linux-x86_64
	arm-android9-linux-androideabi/android-arm
	sparc-sun-solaris2.10/solaris-sparc64
	x86_64-unknown-freebsd8/freebsd-x86_64
	x86_64-unknown-netbsd5/netbsd-x86_64
	i586-mingw32msvc/windows-ix86
)

topdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

for platform in "${platforms[@]}"; do
	ccName="$(echo "${platform}" | cut -f 1 -d /)"
	tclName="$(echo "${platform}" | cut -f 2 -d /)"

	(
		# When cross-compiling Tcl it cannot detect these things and so assumes failure
		# This in turn creates linking issues because it will define the replacements
		# in the main library and stubs library, which we may both link to
		ac_cv_func_memcmp_working=yes
		tcl_cv_strstr_unbroken=ok
		tcl_cv_strtoul_unbroken=ok
		tcl_cv_strtod_unbroken=ok
		tcl_cv_strtod_buggy=ok
		export ac_cv_func_memcmp_working tcl_cv_strstr_unbroken tcl_cv_strtoul_unbroken tcl_cv_strtod_unbroken tcl_cv_strtod_buggy

		# Statically link all the pkgs
		KC_TCL_STATICPKGS='1'
		export KC_TCL_STATICPKGS

		case "${ccName}" in
			*-musl)
        			KC_KITSH_LDFLAGS="-static"
				export KC_KITSH_LDFLAGS
				;;
		esac

		eval "$(~/root/cross-compilers/setup-cc "${ccName}")"

		"${topdir}/make-kit" --tcl-platform="${tclName}" --host="${ccName}"
	)
done