view @ 1207:4021fb1183d7

Environment sanitizing screwed up the wrapper. Fix it, rename PROGRAM_PREFIX to TOOLCHAIN_PREFIX, and put a guard around sources/ so it's safe to include multiple times.
author Rob Landley <>
date Mon, 16 Aug 2010 15:00:35 -0500
parents ac490c50f9f5
children 7eabfa815c90
line wrap: on
line source


# Build a more advanced cross compiler, including thread support and uClibc++,
# built --with-shared (which produces, statically linked
# against uClibc on the host (for portability), and including the $TARGET-ldd
# and $TARGET-ldconfig utilities.

# Building this requires two existing (simple) cross compilers: one for
# the host (to build the executables) and one for the target (to build
# the libraries).

# This is a simple wrapper for, we re-use the canadian
# cross infrastructure in there to build a very similar compiler.

. sources/ || exit 1

# Unless told otherwise, create statically linked i686 host binaries (which
# should run on an x86-64 host just fine, even if it hasn't got 32-bit
# libraries installed).

  TOOLCHAIN_PREFIX="${1}-" STAGE_NAME=cross-compiler \
  ./ "$1" || exit 1

# Run the cross compiler smoke test if requested.

if [ ! -z "$CROSS_SMOKE_TEST" ]
  more/ "$ARCH" || exit 1