bmake: Support mksh as a bootstrap shell.

This commit is contained in:
jperkin 2020-07-06 10:24:04 +00:00
parent 800925fe24
commit ebf0c3b3b2

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.78 2020/06/18 10:07:35 jperkin Exp $
# $NetBSD: Makefile,v 1.79 2020/07/06 10:24:04 jperkin Exp $
DISTNAME= bmake-20200524
PKGREVISION= 1
@ -38,11 +38,14 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
# This section is incomplete, but the general idea is that we should use the
# same shell that was selected by bootstrap.
#
.if ${OPSYS} == "SunOS" && exists(/usr/bin/bash)
CONFIGURE_ARGS+= --with-defshell=/usr/bin/bash
.elif ${TOOLS_PLATFORM.sh:M*/bin/pdksh}
.if ${TOOLS_PLATFORM.sh:M?*/bin/mksh}
DEPENDS+= mksh-[0-9]*:../../shells/mksh
CONFIGURE_ARGS+= --with-defshell=${PREFIX}/bin/mksh
.elif ${TOOLS_PLATFORM.sh:M?*/bin/pdksh}
DEPENDS+= pdksh-[0-9]*:../../shells/pdksh
CONFIGURE_ARGS+= --with-defshell=${PREFIX}/bin/pdksh
.elif ${OPSYS} == "SunOS" && exists(/usr/bin/bash)
CONFIGURE_ARGS+= --with-defshell=/usr/bin/bash
.endif
MAKE_ENV.Interix+= XDEFS=-DUSE_SELECT