aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-21 12:03:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-21 12:03:41 +0200
commit4a5c11f559e72bb6f5d8c28815c57c1690408f29 (patch)
tree996261d1f7aef122737bfd989db62723a863a46e
parentd8f26e8402bbe19820545db90394f657ae42e598 (diff)
Add backwards-compatibility hack for ranlib
-rw-r--r--build2/bin/module.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/bin/module.cxx b/build2/bin/module.cxx
index 26dc414..281a2e4 100644
--- a/build2/bin/module.cxx
+++ b/build2/bin/module.cxx
@@ -434,6 +434,9 @@ namespace build2
const path& ar (cast<path> (ap.first));
const path* ranlib (cast_null<path> (rp.first));
+ if (ranlib != nullptr && ranlib->empty ()) // @@ BC LT [null].
+ ranlib = nullptr;
+
ar_info ari (guess_ar (ar, ranlib));
// If this is a new value (e.g., we are configuring), then print the