libc/glibc: run ./configure in CONFIG_SHELL 1.12
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 11 22:21:48 2011 +0200 (2011-10-11)
branch1.12
changeset 2711c5c8fd92fde9
parent 2710 7ff8acac5142
child 2712 e0515720eee4
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)
scripts/build/libc/glibc-eglibc.sh-common
     1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common	Mon Oct 10 00:00:58 2011 +0200
     1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common	Tue Oct 11 22:21:48 2011 +0200
     1.3 @@ -195,6 +195,8 @@
     1.4      # Adding "--without-gd" option to avoid error "memusagestat.c:36:16: gd.h: No such file or directory"
     1.5      # See also http://sources.redhat.com/ml/libc-alpha/2000-07/msg00024.html.
     1.6      # Set BUILD_CC, or we won't be able to build datafiles
     1.7 +    # Run explicitly through CONFIG_SHELL, or the build breaks badly (loop-of-death)
     1.8 +    # when the shell is not bash... Sigh... :-(
     1.9  
    1.10      CT_DoExecLog CFG                                                \
    1.11      BUILD_CC="${CT_BUILD}-gcc"                                      \
    1.12 @@ -202,6 +204,7 @@
    1.13      CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \
    1.14      AR=${CT_TARGET}-ar                                              \
    1.15      RANLIB=${CT_TARGET}-ranlib                                      \
    1.16 +    "${CONFIG_SHELL}"                                               \
    1.17      "${src_dir}/configure"                                          \
    1.18          --prefix=/usr                                               \
    1.19          --build=${CT_BUILD}                                         \