summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/relocate.py3
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