force the configure shell to bash to work around older configure detection
authorMike Frysinger <vapier@gentoo.org>
Mon, 13 Apr 2015 04:15:59 +0000 (04:15 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 13 Apr 2015 04:15:59 +0000 (04:15 +0000)
eclass/toolchain.eclass

index e9550cdc8341d38b71d5337f8b53bd66f5a060fb..a1cee187c850a827f0d654a8411646e76a9ca8f1 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.660 2015/03/29 19:17:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.661 2015/04/13 04:15:59 vapier Exp $
 
 # Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
 
@@ -1232,7 +1232,10 @@ toolchain_src_configure() {
        # and now to do the actual configuration
        addwrite /dev/zero
        echo "${S}"/configure "${confgcc[@]}"
-       "${S}"/configure "${confgcc[@]}" || die "failed to run configure"
+       # Older gcc versions did not detect bash and re-exec itself, so force the
+       # use of bash.  Newer ones will auto-detect, but this is not harmeful.
+       CONFIG_SHELL="/bin/bash" \
+       bash "${S}"/configure "${confgcc[@]}" || die "failed to run configure"
 
        # return to whatever directory we were in before
        popd > /dev/null