toolchain.eclass: pass CONFIG_SHELL to emake, bug #664486
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 30 Sep 2018 12:08:22 +0000 (13:08 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 30 Sep 2018 12:13:46 +0000 (13:13 +0100)
commitadd23a64e7eb4d27bed13f10228721270b83a37f
tree440ba8b9f6551a4378eac616230091bfacf9fb06
parente0dcb076974be636827fd2ecb817ba9cfc7f0ee5
toolchain.eclass: pass CONFIG_SHELL to emake, bug #664486

Christian reports 'make install' failure caused by limitation
of ancient autotools in detecting CONFIG_SHELL:

```
    /bin/bash .../gcc-3.3.6/libstdc++-v3/../mkinstalldirs \
              .../gcc-3.3.6-r2/image//usr/lib/../lib32
    /bin/bash ../libtool  --mode=install /bin/bash .../gcc-3.3.6/install-sh \
        -c libsupc++.la .../gcc-3.3.6-r2/image//usr/lib/../lib32/libsupc++.la
    libtool: install: `.../gcc-3.3.6-r2/image//usr/lib/../lib32/libsupc++.la' \
        is not a directory
```

We already pass CONFIG_SHELL to top-level ./configure.
The workaround is to pass CONFIG_SHELL variable to 'make' as well.

Reported-by: Christian Schmidt
Fixed-by: Christian Schmidt
Bug: https://bugs.gentoo.org/664486
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass