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:
Break Yang 2023-06-04 10:53:18 -07:00
parent 3f697e808b
commit 9b804b8941

View file

@ -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;
};
}