Skip to content

Commit

Permalink
explicitely pass msgpack configure option to binutils
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Sep 10, 2024
1 parent c29c16d commit 32900b5
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 32900b5

Please sign in to comment.