diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/meson/rpath-0.49.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/meson/rpath-0.49.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/meson/rpath-0.49.patch b/var/spack/repos/builtin/packages/meson/rpath-0.49.patch new file mode 100644 index 0000000000..05b4d142f5 --- /dev/null +++ b/var/spack/repos/builtin/packages/meson/rpath-0.49.patch @@ -0,0 +1,20 @@ +--- a/mesonbuild/scripts/depfixer.py ++++ b/mesonbuild/scripts/depfixer.py +@@ -15,6 +15,7 @@ + + import sys, struct + import shutil, subprocess ++import os + + from ..mesonlib import OrderedSet + +@@ -429,6 +430,9 @@ def fix_jar(fname): + subprocess.check_call(['jar', 'ufm', fname, 'META-INF/MANIFEST.MF']) + + def fix_rpath(fname, new_rpath, final_path, install_name_mappings, verbose=True): ++ # Do not strip rpath when run from within Spack ++ if 'SPACK_RPATH_DIRS' in os.environ: ++ return + # Static libraries never have rpaths + if fname.endswith('.a'): + return |