diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2020-09-21 15:49:02 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-09-21 15:49:02 +0000 |
| commit | b1365a26e905f44713ef1d72f7ef6f9698ca7201 (patch) | |
| tree | f8ef6c959b993d38c1201841eeac28a1470bada5 /tools/build | |
| parent | af6a4c1716acc1cf6a32f992b31f194759c148ad (diff) | |
Notes
Diffstat (limited to 'tools/build')
| -rwxr-xr-x | tools/build/make.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build/make.py b/tools/build/make.py index 7cfe8a0ee08f7..64f7af14a26fb 100755 --- a/tools/build/make.py +++ b/tools/build/make.py @@ -81,6 +81,14 @@ def bootstrap_bmake(source_root, objdir_prefix): "--with-default-sys-path=" + str(bmake_install_dir / "share/mk"), "--with-machine=amd64", # TODO? "--with-machine-arch=amd64", "--without-filemon", "--prefix=" + str(bmake_install_dir)] + + if Path("/bin/sh").resolve().name == "dash": + # Note: we have to avoid using dash as the default shell since it + # filters out variables containing characters such as '-' and that + # breaks the bmake bootstrap tests. + # TODO: remove this when the bootstrap tests have been fixed. + configure_args.append("--with-defshell=/bin/bash") + run(["sh", bmake_source_dir / "boot-strap"] + configure_args, cwd=str(bmake_build_dir), env=env) |
