#!/bin/sh set -eu eval "$(args $0 src build -- "$@")" cmd () { echo echo "${command_name}: $1" >&2 eval "$1" || { status="$?" echo "exit status: $status" return $status } } cmd "freshen-and-patch '$src'" cmd "wipe-build-tree '$build'" cmd "cd '$build'" cmd "CFLAGS=-g3 $(compiler $build) '$src/configure' $(config-flags $build)" cmd "$(compiler $build) make -k || true" cmd "$(compiler $build) make all-target CFLAGS_FOR_TARGET='-O0 -g3'" cmd "$(compiler $build) make" # target/newlib # target/libiberty