diff options
-rw-r--r-- | lib/spack/spack/hooks/absolutify_elf_sonames.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/spack/spack/hooks/absolutify_elf_sonames.py b/lib/spack/spack/hooks/absolutify_elf_sonames.py index d203c6d1ef..654e313fc5 100644 --- a/lib/spack/spack/hooks/absolutify_elf_sonames.py +++ b/lib/spack/spack/hooks/absolutify_elf_sonames.py @@ -13,7 +13,6 @@ import spack.bootstrap import spack.config import spack.relocate from spack.util.elf import ElfParsingError, parse_elf -from spack.util.executable import Executable def is_shared_library_elf(filepath): @@ -149,10 +148,9 @@ def post_install(spec, explicit=None): return # Should failing to locate patchelf be a hard error? - patchelf_path = spack.relocate._patchelf() - if not patchelf_path: + patchelf = spack.relocate._patchelf() + if not patchelf: return - patchelf = Executable(patchelf_path) fixes = find_and_patch_sonames(spec.prefix, spec.package.non_bindable_shared_objects, patchelf) |