Diff

Differences From Artifact [dd08562c69]:

To Artifact [5cad2ac591]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

CCROOT="${HOME}/root/cross-compilers"
SETUP_CC="${CCROOT}/setup-cc"

if [ -z "$1" ]; then
	platforms="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.8@solaris2.8-sparc sparc-sun-solaris2.8,64@solaris2.8-sparc64 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 arm-android9-linux-androideabi@linux-unknown-arm i586-mingw32msvc@win32-ix86 x86_64-w64-mingw32@win32-x86_64"
else
	platforms="$1"
fi

for platform in ${platforms}; do
	echo "  * Building for ${platform}"
	cc_platform="$(echo "${platform}" | cut -f 1 -d '@')"






|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

CCROOT="${HOME}/root/cross-compilers"
SETUP_CC="${CCROOT}/setup-cc"

if [ -z "$1" ]; then
	platforms="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.8@solaris2.8-sparc sparc-sun-solaris2.8,64@solaris2.8-sparc64 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 arm-android9-linux-androideabi@linux-unknown-arm i586-mingw32msvc@win32-ix86 x86_64-w64-mingw32@win32-x86_64 x86_64-redhat5-linux@linux-glibc2.5-x86_64 x86_64-redhat5-linux,32@linux-glibc2.5-ix86"
else
	platforms="$1"
fi

for platform in ${platforms}; do
	echo "  * Building for ${platform}"
	cc_platform="$(echo "${platform}" | cut -f 1 -d '@')"
33
34
35
36
37
38
39




40
41
42
43
44
45
46

	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








>
>
>
>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

	for opt in $opts; do
		case "${opt}" in
			64)
				setup_cc_opts="${setup_cc_opts} 64"
				is64bit='1'
				;;
			32)
				setup_cc_opts="${setup_cc_opts} 32"
				is64bit='0'
				;;
		esac
	done

	if [ "${is64bit}" = '1' ]; then
		configure_opts="${configure_opts} --enable-64bit"
	fi