annotate sources/sections/bash.build @ 1839:c8293b3ab81f draft default tip

Teach chroot-splice to accept one or two arguments. (Control image now optional.)
author Rob Landley <rob@landley.net>
date Sun, 17 Jan 2016 21:18:52 -0600
parents acaa88463c0c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1034
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
1 # wire around some tests ./configure can't run when cross-compiling.
1289
a7c9fd67ff7a If the cross compiler supports internationalization, bash tries to stick -lintl into the host compiler, which may not support it. And if you stick a "no" for the question into config.cache it retests. So stick in a "nyet", which isn't a yes (so -lintl isn't added) but doesn't trigger a retest. I hate autoconf.
Rob Landley <rob@landley.net>
parents: 1034
diff changeset
2 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 &&
1812
acaa88463c0c Add CROSS_COMPILER_PATH and CC_PREFIX knobs.
Rob Landley <rob@landley.net>
parents: 1289
diff changeset
3 LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${CC_PREFIX}cc" \
acaa88463c0c Add CROSS_COMPILER_PATH and CC_PREFIX knobs.
Rob Landley <rob@landley.net>
parents: 1289
diff changeset
4 RANLIB="${CC_PREFIX}ranlib" ./configure --prefix="$STAGE_DIR" \
1034
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
5 --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --cache-file=config.cache \
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
6 --without-bash-malloc --disable-readline &&
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
7 # note: doesn't work with -j
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
8 make &&
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
9 make install &&
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
10 # Make bash the default shell.
27c38c82401d Move make, bash, and distcc builds into native-compiler.sh. (Break 'em out into sources/sections/*.build.)
Rob Landley <rob@landley.net>
parents:
diff changeset
11 ln -sf bash "$STAGE_DIR/bin/sh"