view sources/sections/bash.build @ 1034:27c38c82401d

Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
author Rob Landley <rob@landley.net>
date Sun, 11 Apr 2010 15:21:00 -0500
parents
children a7c9fd67ff7a
line wrap: on
line source

# wire around some tests ./configure can't run when cross-compiling.
echo -e "ac_cv_func_setvbuf_reversed=no\nbash_cv_sys_named_pipes=yes\nbash_cv_have_mbstate_t=yes\nbash_cv_getenv_redef=no" > config.cache &&
LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${ARCH}-cc" RANLIB="${ARCH}-ranlib" \
  ./configure --prefix="$STAGE_DIR" \
  --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --cache-file=config.cache \
  --without-bash-malloc --disable-readline &&
# note: doesn't work with -j
make &&
make install &&
# Make bash the default shell.
ln -sf bash "$STAGE_DIR/bin/sh"