Mercurial > hg > aboriginal
view sources/sections/bash.build @ 1812:acaa88463c0c draft
Add CROSS_COMPILER_PATH and CC_PREFIX knobs.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 12 Nov 2015 07:55:05 -0600 |
parents | a7c9fd67ff7a |
children |
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\nac_cv_func_bindtextdomain=nyet" > config.cache && LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${CC_PREFIX}cc" \ RANLIB="${CC_PREFIX}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"