lldb: use provided INSTALL_NAME_DIR

Fixes #47886

We don’t want llvm to set the install name for us. It should be the
one given to us.
This commit is contained in:
Matthew Bauer
2018-12-15 13:27:02 -06:00
parent 1d6b0eb7dd
commit adcf4aa524
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ in stdenv.mkDerivation (rec {
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace cmake/modules/AddLLVM.cmake \
--replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir INSTALL_NAME_DIR "$lib/lib")" \
--replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \
--replace 'set(_install_rpath "@loader_path/../lib" ''${extra_libdir})' ""
''
# Patch llvm-config to return correct library path based on --link-{shared,static}.