Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:

* Add CONFIG_SHELL=$(SHELL) to the environment when invoking genmultilib.
  Due to substitutions made by associated configure scripts, the make
  variable $(SHELL) will actually refer to the environment variable
  ${CONFIG_SHELL}.
This commit is contained in:
apb 2006-09-29 20:10:01 +00:00
parent f90c5ef1d5
commit cb575a16ce
2 changed files with 2 additions and 0 deletions

View File

@ -1093,6 +1093,7 @@ multilib.h: s-mlib; @true
s-mlib: $(srcdir)/genmultilib Makefile
if test @enable_multilib@ = yes \
|| test -n "$(MULTILIB_OSDIRNAMES)"; then \
CONFIG_SHELL="$(SHELL)" \
$(SHELL) $(srcdir)/genmultilib \
"$(MULTILIB_OPTIONS)" \
"$(MULTILIB_DIRNAMES)" \

View File

@ -1393,6 +1393,7 @@ multilib.h: s-mlib; @true
s-mlib: $(srcdir)/genmultilib Makefile
if test @enable_multilib@ = yes \
|| test -n "$(MULTILIB_OSDIRNAMES)"; then \
CONFIG_SHELL="$(SHELL)" \
$(SHELL) $(srcdir)/genmultilib \
"$(MULTILIB_OPTIONS)" \
"$(MULTILIB_DIRNAMES)" \