Allow using ash as the shell for ./configure and make.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 25 19:44:39 2008 +0000 (2008-08-25)
changeset 805ae730f907bed
parent 804 c057564b1969
child 806 b5734a8508f1
Allow using ash as the shell for ./configure and make.
After an idea by "Martin Guy" <martinwguy@yahoo.it>:
http://sourceware.org/ml/crossgcc/2008-08/msg00037.html

/trunk/scripts/crosstool.sh | 4 4 0 0 ++++
/trunk/config/global/build-behave.in | 14 14 0 0 ++++++++++++++
2 files changed, 18 insertions(+)
config/global/build-behave.in
scripts/crosstool.sh
     1.1 --- a/config/global/build-behave.in	Mon Aug 25 17:33:13 2008 +0000
     1.2 +++ b/config/global/build-behave.in	Mon Aug 25 19:44:39 2008 +0000
     1.3 @@ -43,3 +43,17 @@
     1.4      help
     1.5        Use gcc's option -pipe to use pipes rather than temp files when building
     1.6        the toolchain.
     1.7 +
     1.8 +config CONFIG_SHELL_ASH
     1.9 +    bool
    1.10 +    prompt "Use 'ash' as CONFIG_SHELL"
    1.11 +    default n
    1.12 +    help
    1.13 +      Use /bin/ash as the shell used by ./configure scripts.
    1.14 +      
    1.15 +      ./configure scripts make intensive use of calling a sub-shell, and the
    1.16 +      traditional bash is slow, whereas ash is faster.
    1.17 +      
    1.18 +      Saying 'y' here should be safe enough, but some components may not
    1.19 +      accept using a shell other than bash (this is most probably true for
    1.20 +      old versions). If you have trouble, say 'n' here and see if it fixes it.
     2.1 --- a/scripts/crosstool.sh	Mon Aug 25 17:33:13 2008 +0000
     2.2 +++ b/scripts/crosstool.sh	Mon Aug 25 19:44:39 2008 +0000
     2.3 @@ -331,6 +331,10 @@
     2.4      # Override the configured jobs with what's been given on the command line
     2.5      [ -n "${CT_JOBS}" ] && CT_PARALLEL_JOBS="${CT_JOBS}"
     2.6  
     2.7 +    # Help ./configure scripts go faster
     2.8 +    [ "${CT_CONFIG_SHELL_ASH}" = "y" ] && export CONFIG_SHELL=/bin/ash
     2.9 +    export CONFIG_SHELL
    2.10 +
    2.11      # And help make go faster
    2.12      PARALLELMFLAGS=
    2.13      [ ${CT_PARALLEL_JOBS} -ne 0 ] && PARALLELMFLAGS="${PARALLELMFLAGS} -j${CT_PARALLEL_JOBS}"