summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-11 20:21:48 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-11 20:21:48 (GMT)
commit3714ada8191410f886bda832e0fa24a9c6ba5b32 (patch)
treeb4251c19b90c8c6ceaec23c2930e1cf612d08ae8
parentf68c40aa08df4c609314149983120b2e6d523f77 (diff)
libc/glibc: run ./configure in CONFIG_SHELL
Tremendously helps when running on at least Ubuntu, with dash as the system shell (ie. /bin/sh points to dash). Reported by a few people, of which: leming, ccct and ccole on IRC Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> (transplanted from 30c89d1f74a4fee73517b4ed67e843be6885447e)
-rw-r--r--scripts/build/libc/glibc-eglibc.sh-common3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common
index f57e9e9..75e4cd3 100644
--- a/scripts/build/libc/glibc-eglibc.sh-common
+++ b/scripts/build/libc/glibc-eglibc.sh-common
@@ -195,6 +195,8 @@ do_libc_backend() {
# Adding "--without-gd" option to avoid error "memusagestat.c:36:16: gd.h: No such file or directory"
# See also http://sources.redhat.com/ml/libc-alpha/2000-07/msg00024.html.
# Set BUILD_CC, or we won't be able to build datafiles
+ # Run explicitly through CONFIG_SHELL, or the build breaks badly (loop-of-death)
+ # when the shell is not bash... Sigh... :-(
CT_DoExecLog CFG \
BUILD_CC="${CT_BUILD}-gcc" \
@@ -202,6 +204,7 @@ do_libc_backend() {
CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \
AR=${CT_TARGET}-ar \
RANLIB=${CT_TARGET}-ranlib \
+ "${CONFIG_SHELL}" \
"${src_dir}/configure" \
--prefix=/usr \
--build=${CT_BUILD} \