Skip to content

Commit

Permalink
Merge pull request #3438 from Flamefire/20240910101650_new_pr_binutils
Browse files Browse the repository at this point in the history
enhance binutils easyblock to explicitely pass msgpack configure option
  • Loading branch information
boegel authored Sep 11, 2024
2 parents 485a195 + 32900b5 commit d3ecacd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions easybuild/easyblocks/b/binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ def configure_step(self):
else:
libs.append(libz_path)

msgpackroot = get_software_root('msgpack-c')
if LooseVersion(self.version) >= LooseVersion('2.39'):
if msgpackroot:
self.cfg.update('configopts', '--with-msgpack')
else:
self.cfg.update('configopts', '--without-msgpack')
elif msgpackroot:
raise EasyBuildError('msgpack is only supported since binutils 2.39. Remove the dependency!')

env.setvar('LIBS', ' '.join(libs))

# explicitly configure binutils to use / as sysroot
Expand Down

0 comments on commit d3ecacd

Please sign in to comment.