Skip to content

Commit 3b44769

Browse files
authored
Update easyblock.py
1 parent 0e469b0 commit 3b44769

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3734,12 +3734,21 @@ def trace_and_log(msg):
37343734

37353735
return fail_msgs
37363736

3737-
def sanity_check_rpath(self, rpath_dirs=None, check_readelf_rpath=True):
3737+
def sanity_check_rpath(self, rpath_dirs=None, check_readelf_rpath=None):
37383738
"""Sanity check binaries/libraries w.r.t. RPATH linking."""
37393739

37403740
self.log.info("Checking RPATH linkage for binaries/libraries...")
37413741

37423742
fails = []
3743+
3744+
# Configure RPATH checking by readelf using easyconfig variable 'check_readelf_rpath' (default True)
3745+
if check_readelf_rpath is None:
3746+
check_readelf_rpath = self.cfg["check_readelf_rpath"]
3747+
(
3748+
self.log.info("RPATH checking by readelf is enabled")
3749+
if check_readelf_rpath
3750+
else self.log.info("RPATH checking by readelf is disabled")
3751+
)
37433752

37443753
if build_option('strict_rpath_sanity_check'):
37453754
self.log.info("Unsetting $LD_LIBRARY_PATH since strict RPATH sanity check is enabled...")

0 commit comments

Comments
 (0)