view @ 1737:1acbe7e78d9d draft

Switch from bz2 to gz tarball output. bz2 is slowly being replaced by lz variants, but gzip isn't going anywhere. (It retains a niche as a streaming protocol, it's the 80/20 solution optimizing for speed, low memory requirements, and simple compressor implementation.)
author Rob Landley <>
date Fri, 20 Feb 2015 13:12:45 -0600
parents 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