Skip to content

Commit

Permalink
Merge pull request #3467 from easybuilders/ocaisa-patch-1
Browse files Browse the repository at this point in the history
Update ROOT easyblock to support sysroot
  • Loading branch information
Micket authored Oct 3, 2024
2 parents 1f61ad7 + c3aebe1 commit bd7fe7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easybuild/easyblocks/r/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from easybuild.framework.easyconfig import CUSTOM
from easybuild.easyblocks.generic.cmakemake import CMakeMake
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.environment import setvar
from easybuild.tools.filetools import find_glob_pattern
from easybuild.tools.modules import get_software_root, get_software_version
Expand Down Expand Up @@ -104,6 +105,10 @@ def configure_step(self):
if get_software_root('X11'):
self.cfg.update('configopts', '-Dx11=ON')

sysroot = build_option('sysroot')
if sysroot:
self.cfg.update('configopts', '-DDEFAULT_SYSROOT=%s' % sysroot)

CMakeMake.configure_step(self)
else:
if self.cfg['arch'] is None:
Expand Down

0 comments on commit bd7fe7e

Please sign in to comment.