From 7ef52acfce812942df37e421e1c4283b67233e2b Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Wed, 22 Jun 2022 16:55:28 -0700 Subject: relocation: x-pie-executable needs relocation (#31248) --- lib/spack/spack/relocate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50