commit:     d54d253614e3f1c5baf3d81370ee32f081134b77
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  6 14:27:06 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Jan  6 14:27:06 2018 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d54d2536

scripts/bootstrap-prefix: have bootstrap_make install gmake symlink

If we set MAKE=gmake before, ensure that we use the just compiled make
by providing a gmake symlink.

 scripts/bootstrap-prefix.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 78c62ea314..dbce4d4256 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1057,6 +1057,10 @@ bootstrap_tar() {
 bootstrap_make() {
        MAKEOPTS= # no GNU make yet
        bootstrap_gnu make 3.82
+       if [[ ${MAKE} == gmake ]] ; then
+               # make make available as gmake
+               ( cd ${ROOT}/tmp/usr/bin && ln -s make gmake )
+       fi
 }
 
 bootstrap_patch() {

Reply via email to