This patch: - updates the test to run GNU make; - Strips all configure arguments of the form `--XXXdir=YYY` from the configure lines used to build the new perl tree, since these override the temporary --prefix being used for the test. diff -wpruN --no-dereference '--exclude=*.orig' a~/Tools/freeze/test/freeze.py a/Tools/freeze/test/freeze.py --- a~/Tools/freeze/test/freeze.py 1970-01-01 00:00:00 +++ a/Tools/freeze/test/freeze.py 1970-01-01 00:00:00 @@ -6,6 +6,7 @@ import subprocess import sysconfig from test import support +import re def get_python_source_dir(): src_dir = sysconfig.get_config_var('abs_srcdir') @@ -18,7 +19,7 @@ TESTS_DIR = os.path.dirname(__file__) TOOL_ROOT = os.path.dirname(TESTS_DIR) SRCDIR = get_python_source_dir() -MAKE = shutil.which('make') +MAKE = shutil.which('gmake') FREEZE = os.path.join(TOOL_ROOT, 'freeze.py') OUTDIR = os.path.join(TESTS_DIR, 'outdir') @@ -129,6 +130,7 @@ def prepare(script=None, outdir=None): print(f'configuring python in {builddir}...') config_args = shlex.split(sysconfig.get_config_var('CONFIG_ARGS') or '') cmd = [os.path.join(srcdir, 'configure'), *config_args] + cmd = [c for c in cmd if not re.search(r'^--.*dir=', c)] ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache')) prefix = os.path.join(outdir, 'python-installation') ensure_opt(cmd, 'prefix', prefix)