We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f86d62 commit 639ed00Copy full SHA for 639ed00
mesonbuild/backend/ninjabackend.py
@@ -2366,7 +2366,12 @@ def generate_static_link_rules(self):
2366
# ranlib, not to ar
2367
cmdlist.extend(args)
2368
args = []
2369
- cmdlist.extend(['&&', 'ranlib', '-c', '$out'])
+ # Ensure that we use the user-specified ranlib if any, and
2370
+ # fallback to just picking up some ranlib otherwise
2371
+ ranlib = self.environment.lookup_binary_entry(for_machine, 'ranlib')
2372
+ if ranlib is None:
2373
+ ranlib = ['ranlib']
2374
+ cmdlist.extend(['&&'] + ranlib + ['-c', '$out'])
2375
description = 'Linking static target $out'
2376
if num_pools > 0:
2377
pool = 'pool = link_pool'
0 commit comments