comparison cross-compiler.sh @ 1207:4021fb1183d7

Environment sanitizing screwed up the cross-compiler.sh wrapper. Fix it, rename PROGRAM_PREFIX to TOOLCHAIN_PREFIX, and put a guard around sources/include.sh so it's safe to include multiple times.
author Rob Landley <rob@landley.net>
date Mon, 16 Aug 2010 15:00:35 -0500
parents ac490c50f9f5
children 7eabfa815c90
comparison
equal deleted inserted replaced
1206:99c49806ea6d 1207:4021fb1183d7
10 # the libraries). 10 # the libraries).
11 11
12 # This is a simple wrapper for native-compiler.sh, we re-use the canadian 12 # This is a simple wrapper for native-compiler.sh, we re-use the canadian
13 # cross infrastructure in there to build a very similar compiler. 13 # cross infrastructure in there to build a very similar compiler.
14 14
15 . sources/include.sh || exit 1
15 16
16 # Unless told otherwise, create statically linked i686 host binaries (which 17 # Unless told otherwise, create statically linked i686 host binaries (which
17 # should run on an x86-64 host just fine, even if it hasn't got 32-bit 18 # should run on an x86-64 host just fine, even if it hasn't got 32-bit
18 # libraries installed). 19 # libraries installed).
19 20
20 HOST_ARCH="${CROSS_HOST_ARCH:-i686}" BUILD_STATIC=${BUILD_STATIC:-all} \ 21 BUILD_STATIC=${BUILD_STATIC:-all} HOST_ARCH="${CROSS_HOST_ARCH:-i686}" \
21 STAGE_NAME=cross-compiler ./native-compiler.sh "$1" || exit 1 22 TOOLCHAIN_PREFIX="${1}-" STAGE_NAME=cross-compiler \
23 ./native-compiler.sh "$1" || exit 1
22 24
23 # Run the cross compiler smoke test if requested. 25 # Run the cross compiler smoke test if requested.
24 26
25 if [ ! -z "$CROSS_SMOKE_TEST" ] 27 if [ ! -z "$CROSS_SMOKE_TEST" ]
26 then 28 then