dotnet-sdk: fix debugging

Without this attempt to run debugger fails with "Unknown error
0x80131c3c". Underlying problem is that libmscordbi.so cannot
find libmscordaccore.so.
This commit is contained in:
Nikolay Amiantov 2019-07-09 20:32:51 +03:00
parent ca336ac985
commit 0bc362c485

View File

@ -28,7 +28,7 @@ in
runHook preBuild
patchelf --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" ./dotnet
patchelf --set-rpath "${rpath}" ./dotnet
find -type f -name "*.so" -exec patchelf --set-rpath "${rpath}" {} \;
find -type f -name "*.so" -exec patchelf --set-rpath '$ORIGIN:${rpath}' {} \;
echo -n "dotnet-sdk version: "
./dotnet --version
runHook postBuild