diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-06-30 22:24:04 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-06-30 22:24:04 (GMT) |
commit | 82766493f5562a62ae1f4d227532924aeba6e1d4 (patch) | |
tree | 2d4098c1f3e7cdaad1ef950ccc8fbab409deae89 /scripts/build | |
parent | c8ecae9a5f63396425bf47c52cfdf4a6c2d6d2c7 (diff) |
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.
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/libc/glibc.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index b1abe70..f739b88 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -409,6 +409,19 @@ do_libc() { 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 |