# HG changeset patch # User "Yann E. MORIN" # Date 1318364508 -7200 # Node ID c5c8fd92fde9f65762c2b2d86e1db8ed9fde2c7e # Parent 7ff8acac51428bacc14ca24e4427f6c1b2637e8d 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" (transplanted from 30c89d1f74a4fee73517b4ed67e843be6885447e) diff -r 7ff8acac5142 -r c5c8fd92fde9 scripts/build/libc/glibc-eglibc.sh-common --- a/scripts/build/libc/glibc-eglibc.sh-common Mon Oct 10 00:00:58 2011 +0200 +++ b/scripts/build/libc/glibc-eglibc.sh-common Tue Oct 11 22:21:48 2011 +0200 @@ -195,6 +195,8 @@ # 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 @@ 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} \