# HG changeset patch # User "Yann E. MORIN" # Date 1277936644 -7200 # Node ID 1be81b72dea4025dcf4176499fbb067f18adf3d5 # Parent a760d9cf03e0735eff29bbed4ae7ba89ba7a7341 libc/glibc: fix installed scripts glibc installs some bash-scripts, but uses the path to the buildtool bash as interpreter (on the shebang line). This is only a symlink to the real bash, and thus is not available at runtime. Fix that by assuming that bash on the target *will* be /bin/bash. diff -r a760d9cf03e0 -r 1be81b72dea4 scripts/build/libc/glibc.sh --- a/scripts/build/libc/glibc.sh Sun Jun 27 16:40:21 2010 +0200 +++ b/scripts/build/libc/glibc.sh Thu Jul 01 00:24:04 2010 +0200 @@ -409,6 +409,19 @@ echo libc_cv_c_cleanup=yes fi >config.cache + # ./configure is mislead by our tools override wrapper for bash + # so just tell it where the real bash is _on_the_target_! + # Notes: + # - ${ac_cv_path_BASH_SHELL} is only used to set BASH_SHELL + # - ${BASH_SHELL} is only used to set BASH + # - ${BASH} is only used to set the shebang + # in two scripts to run on the target + # So we can safely bypass bash detection at compile time. + # Should this change in a future glibc release, we'd better + # directly mangle the generated scripts _after_ they get built, + # or even after they get installed... glibc is such a sucker... + echo "ac_cv_path_BASH_SHELL=/bin/bash" >>config.cache + # Configure with --prefix the way we want it on the target... # There are a whole lot of settings here. You'll probably want # to read up on what they all mean, and customize a bit, possibly by setting GLIBC_EXTRA_CONFIG