cudaPackages.cudatoolkit: mark libnvrtc-builtins needed for libnvrtc
libnvrtc dlopens libnvrtc-builtins without listing it in DT_NEEDED, thus it was being stripped out from the runpath
This commit is contained in:
parent
3f697e808b
commit
9b804b8941
1 changed files with 4 additions and 1 deletions
|
@ -158,6 +158,10 @@ backendStdenv.mkDerivation rec {
|
|||
"libcom_err.so.2"
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
patchelf $out/lib64/libnvrtc.so --add-needed libnvrtc-builtins.so
|
||||
'';
|
||||
|
||||
unpackPhase = ''
|
||||
sh $src --keep --noexec
|
||||
|
||||
|
@ -342,4 +346,3 @@ backendStdenv.mkDerivation rec {
|
|||
maintainers = teams.cuda.members;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue