From 5afb9345f74a41dbdd96953602c1b2f6941dee83 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 31 Oct 2022 12:18:51 +0100 Subject: bootstrap: allow overwriting of ar ... in the same way, as we support different names for cc and c++. --- bin/bootstrap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/bootstrap.py') diff --git a/bin/bootstrap.py b/bin/bootstrap.py index 5fbf6a23..dcbd8586 100755 --- a/bin/bootstrap.py +++ b/bin/bootstrap.py @@ -58,9 +58,12 @@ if 'SOURCE_DATE_EPOCH' in os.environ: CONF_STRING = json.dumps(CONF) +AR="ar" CC="clang" CXX="clang++" +if "AR" in CONF: + AR=CONF["AR"] if "CC" in CONF: CC=CONF["CC"] if "CXX" in CONF: @@ -158,7 +161,7 @@ def setup_deps(src_wrkdir): os.symlink(os.path.normpath(include_dir), os.path.join(include_location, include_name)) if "build" in hints: - run(["sh", "-c", hints["build"].format(cc=CC, cxx=CXX)], + run(["sh", "-c", hints["build"].format(cc=CC, cxx=CXX, ar=AR)], cwd=subdir) if "link" in hints: link_flags.extend(["-L", subdir]) -- cgit v1.2.3