diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2022-06-22 16:55:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 23:55:28 +0000 |
commit | 7ef52acfce812942df37e421e1c4283b67233e2b (patch) | |
tree | 93263fd9116d8958e06e3ac7bfe59591ee5293bb /lib | |
parent | c3fecfb103a08df966ab22f2f0839b0701ff7a19 (diff) | |
download | spack-7ef52acfce812942df37e421e1c4283b67233e2b.tar.gz spack-7ef52acfce812942df37e421e1c4283b67233e2b.tar.bz2 spack-7ef52acfce812942df37e421e1c4283b67233e2b.tar.xz spack-7ef52acfce812942df37e421e1c4283b67233e2b.zip |
relocation: x-pie-executable needs relocation (#31248)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/relocate.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index bbb5e8025a..47c447c5e0 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -433,8 +433,9 @@ def needs_binary_relocation(m_type, m_subtype): m_type (str): MIME type of the file m_subtype (str): MIME subtype of the file """ + subtypes = ('x-executable', 'x-sharedlib', 'x-mach-binary', 'x-pie-executable') if m_type == 'application': - if m_subtype in ('x-executable', 'x-sharedlib', 'x-mach-binary'): + if m_subtype in subtypes: return True return False |