# HG changeset patch # User "Yann E. MORIN" # Date 1219693479 0 # Node ID ae730f907bedfbc6ff3c4f340f983df9f93e0367 # Parent c057564b19694bdd5886a457bc80353af67acb5a Allow using ash as the shell for ./configure and make. After an idea by "Martin Guy" : 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(+) diff -r c057564b1969 -r ae730f907bed config/global/build-behave.in --- a/config/global/build-behave.in Mon Aug 25 17:33:13 2008 +0000 +++ b/config/global/build-behave.in Mon Aug 25 19:44:39 2008 +0000 @@ -43,3 +43,17 @@ help Use gcc's option -pipe to use pipes rather than temp files when building the toolchain. + +config CONFIG_SHELL_ASH + bool + prompt "Use 'ash' as CONFIG_SHELL" + default n + help + Use /bin/ash as the shell used by ./configure scripts. + + ./configure scripts make intensive use of calling a sub-shell, and the + traditional bash is slow, whereas ash is faster. + + Saying 'y' here should be safe enough, but some components may not + accept using a shell other than bash (this is most probably true for + old versions). If you have trouble, say 'n' here and see if it fixes it. diff -r c057564b1969 -r ae730f907bed scripts/crosstool.sh --- a/scripts/crosstool.sh Mon Aug 25 17:33:13 2008 +0000 +++ b/scripts/crosstool.sh Mon Aug 25 19:44:39 2008 +0000 @@ -331,6 +331,10 @@ # Override the configured jobs with what's been given on the command line [ -n "${CT_JOBS}" ] && CT_PARALLEL_JOBS="${CT_JOBS}" + # Help ./configure scripts go faster + [ "${CT_CONFIG_SHELL_ASH}" = "y" ] && export CONFIG_SHELL=/bin/ash + export CONFIG_SHELL + # And help make go faster PARALLELMFLAGS= [ ${CT_PARALLEL_JOBS} -ne 0 ] && PARALLELMFLAGS="${PARALLELMFLAGS} -j${CT_PARALLEL_JOBS}"