summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/meson/rpath-0.64.patch
blob: df69287c19147e4c1a22cc4101bc3d196f39e5d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/mesonbuild/scripts/depfixer.py	2021-05-11 21:50:38.800645669 +0200
+++ b/mesonbuild/scripts/depfixer.py	2021-05-11 21:51:44.503883473 +0200
@@ -479,6 +479,9 @@
 
 def fix_rpath(fname: str, rpath_dirs_to_remove: T.Set[bytes], new_rpath: T.Union[str, bytes], final_path: str, install_name_mappings: T.Dict[str, str], verbose: bool = True) -> None:
     global INSTALL_NAME_TOOL  # pylint: disable=global-statement
+    # Do not strip rpath when run from within Spack
+    if 'SPACK_RPATH_DIRS' in os.environ:
+        return
     # Static libraries, import libraries, debug information, headers, etc
     # never have rpaths
     # DLLs and EXE currently do not need runtime path fixing