From 0f50bbee8216813e0d4d8b72b7ae3624f55a4742 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 27 Jan 2016 16:05:03 +0200 Subject: Add support for Mingw32 target, also config.bin.ar, config.bin.ranlib --- build2/bin/module.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'build2/bin') diff --git a/build2/bin/module.cxx b/build2/bin/module.cxx index 1e79e9e..472ee86 100644 --- a/build2/bin/module.cxx +++ b/build2/bin/module.cxx @@ -46,6 +46,9 @@ namespace build2 { auto& v (var_pool); + v.find ("config.bin.ar", string_type); //@@ VAR path_type + v.find ("config.bin.ranlib", string_type); //@@ VAR path_type + v.find ("config.bin.lib", string_type); v.find ("config.bin.exe.lib", strings_type); v.find ("config.bin.liba.lib", strings_type); @@ -154,6 +157,21 @@ namespace build2 if (const value& v = config::optional (r, "config.bin.rpath")) b.assign ("bin.rpath") += as (v); + // config.bin.ar + // config.bin.ranlib + // + // For config.bin.ar we default to 'ar' while ranlib should be explicitly + // specified by the user in order for us to use it (most targets support + // -s option to ar). + // + if (first) + { + // @@ Maybe, if explicitly specified by the user, we should try to run + // them? + // + config::required (r, "config.bin.ar", "ar"); + config::optional (r, "config.bin.ranlib"); + } // Configure "installability" of our target types. // -- cgit v1.1