Skip to content

Commit a4bca65

Browse files
committed
check if ld wrappers are actually available
1 parent cf20491 commit a4bca65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eb_hooks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ def post_prepare_hook_gcc_prefixed_ld_rpath_wrapper(self, *args, **kwargs):
331331
cmd_prefix = '%s-' % system_type.strip()
332332
for cmd in ('ld', 'ld.gold', 'ld.bfd'):
333333
wrapper = which(cmd)
334+
if wrapper is None:
335+
# if no wrapper is found, the build machine does not have the corresponding command
336+
# (e.g. there is no ld.gold in newer compatibility layers),
337+
# and we can simply skip this step
338+
continue
334339
self.log.info("Path to %s wrapper: %s" % (cmd, wrapper))
335340
wrapper_dir = os.path.dirname(wrapper)
336341
prefix_wrapper = os.path.join(wrapper_dir, cmd_prefix + cmd)

0 commit comments

Comments
 (0)