diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2010-12-22 22:42:11 +0100 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2010-12-22 22:42:11 +0100 |
commit | bb97cbaff62482fabdd6dd7812fa090d33824bff (patch) | |
tree | 9d15517d928c7e4dbcbce4b0726f286ff651232e | |
parent | a91f21810c3b3787d1f520d706053b49da05a47d (diff) | |
download | crosstool-ng-bb97cbaff62482fabdd6dd7812fa090d33824bff.tar.gz crosstool-ng-bb97cbaff62482fabdd6dd7812fa090d33824bff.tar.bz2 crosstool-ng-bb97cbaff62482fabdd6dd7812fa090d33824bff.zip |
libc/eglibc: fix installed scripts
Like rev 2002, eglibc installs some bash scripts, but use the path to the
buildtool bash as the 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 shell on the target *will* be /bin/bash.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
(transplanted from 6884dcb80121ebc8ce17deee62716ed75fc29393)
-rw-r--r-- | scripts/build/libc/eglibc.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/build/libc/eglibc.sh b/scripts/build/libc/eglibc.sh index b71107f4..0d92c900 100644 --- a/scripts/build/libc/eglibc.sh +++ b/scripts/build/libc/eglibc.sh @@ -306,6 +306,19 @@ do_libc() { CT_DoLog DEBUG "Extra config args passed: '${extra_config[*]}'" CT_DoLog DEBUG "Extra CC args passed : '${extra_cc_args}'" + # ./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 eglibc release, we'd better + # directly mangle the generated scripts _after_ they get built, + # or even after they get installed... eglibc is such a sucker... + echo "ac_cv_path_BASH_SHELL=/bin/bash" >config.cache + BUILD_CC="${CT_BUILD}-gcc" \ CFLAGS="${CT_TARGET_CFLAGS} ${CT_LIBC_GLIBC_EXTRA_CFLAGS} ${OPTIMIZE}" \ CC="${CT_TARGET}-gcc ${CT_LIBC_EXTRA_CC_ARGS} ${extra_cc_args}" \ @@ -320,6 +333,7 @@ do_libc() { --disable-profile \ --without-gd \ --without-cvs \ + --cache-file=config.cache \ "${extra_config[@]}" \ ${CT_LIBC_GLIBC_EXTRA_CONFIG} |