libc/glibc: run ./configure in CONFIG_SHELL
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 11 22:21:48 2011 +0200 (2011-10-11)
changeset 270630c89d1f74a4
parent 2705 80a09cf51c87
child 2707 652e56d6d35a
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>
scripts/build/libc/glibc-eglibc.sh-common
     1.1 --- a/scripts/build/libc/glibc-eglibc.sh-common	Tue Oct 11 21:43:42 2011 +0200
     1.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common	Tue Oct 11 22:21:48 2011 +0200
     1.3 @@ -199,6 +199,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 @@ -206,6 +208,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}                                         \