Mercurial > hg > aboriginal
view native-compiler.sh @ 999:4bd1bc15a744
Move distcc setup to dev-environment.sh. Fix bug where CPUS wasn't defined if distcc wasn't being used (leading to make -j with no limit, and OOM conditions in the emulated system).
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 15 Mar 2010 06:01:36 -0500 |
parents | bbcafba8a594 |
children | 48784ae8533e |
line wrap: on
line source
#!/bin/bash # Build a compiler for a given target source sources/include.sh || exit 1 read_arch_dir "$1" check_for_base_arch || exit 0 check_prerequisite "${ARCH}-cc" check_prerequisite "${FROM_ARCH}-cc" mkdir -p "$STAGE_DIR/bin" || dienow STATIC_FLAGS="$STATIC_DEFAULT_FLAGS" # Build C Library build_section linux-headers build_section uClibc # Build binutils, gcc, and ccwrap build_section binutils build_section gcc build_section ccwrap # Tell future packages to link against the libraries in the new root filesystem, # rather than the ones in the cross compiler directory. export "$(echo $ARCH | sed 's/-/_/g')"_CCWRAP_TOPDIR="$STAGE_DIR" build_section uClibc++ # Delete some unneeded files [ -z "$SKIP_STRIP" ] && rm -rf "$STAGE_DIR"/{info,man} create_stage_tarball