mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
jetbrains.clion: patchelf lldb files correctly
This commit is contained in:
parent
50b498d23e
commit
617d053f30
1 changed files with 13 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ lib, stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
|
{ lib, stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
|
||||||
, coreutils, gnugrep, which, git, python, unzip, p7zip
|
, coreutils, gnugrep, which, git, python, unzip, p7zip
|
||||||
, androidsdk, jdk, cmake, libxml2, zlib, python2, ncurses
|
, androidsdk, jdk, cmake, libxml2, zlib, python3, ncurses
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
@ -41,11 +41,19 @@ let
|
||||||
patchelf --set-interpreter $interp \
|
patchelf --set-interpreter $interp \
|
||||||
--set-rpath "${lib.makeLibraryPath [ libxml2 zlib stdenv.cc.cc.lib ]}:$lldbLibPath" \
|
--set-rpath "${lib.makeLibraryPath [ libxml2 zlib stdenv.cc.cc.lib ]}:$lldbLibPath" \
|
||||||
bin/lldb/bin/lldb-server
|
bin/lldb/bin/lldb-server
|
||||||
|
|
||||||
|
for i in LLDBFrontend lldb lldb-argdumper; do
|
||||||
patchelf --set-interpreter $interp \
|
patchelf --set-interpreter $interp \
|
||||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:$lldbLibPath" \
|
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:$lldbLibPath" \
|
||||||
bin/lldb/LLDBFrontend
|
"bin/lldb/bin/$i"
|
||||||
|
done
|
||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-rpath "${lib.makeLibraryPath [ libxml2 zlib stdenv.cc.cc.lib python2 ]}:$lldbLibPath" \
|
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:$lldbLibPath" \
|
||||||
|
bin/lldb/lib/python3.*/lib-dynload/zlib.cpython-*m-x86_64-linux-gnu.so
|
||||||
|
|
||||||
|
patchelf \
|
||||||
|
--set-rpath "${lib.makeLibraryPath [ libxml2 zlib stdenv.cc.cc.lib python3 ]}:$lldbLibPath" \
|
||||||
bin/lldb/lib/liblldb.so
|
bin/lldb/lib/liblldb.so
|
||||||
|
|
||||||
patchelf --set-interpreter $interp bin/gdb/bin/gdb
|
patchelf --set-interpreter $interp bin/gdb/bin/gdb
|
||||||
|
|
Loading…
Reference in a new issue