llvmPackages.libunwind: fix mingw build problem

Fixes a broken symlink in the MinGW targets for the shared library

Fixes #379993
This commit is contained in:
Greg Hellings
2025-02-08 15:25:10 -06:00
parent 3588c602ae
commit 7118a85d93
@@ -44,9 +44,11 @@ let
cd ../runtimes
'';
postInstall = lib.optionalString (enableShared && !stdenv.hostPlatform.isDarwin) ''
postInstall = lib.optionalString (enableShared && !stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isWindows) ''
# libcxxabi wants to link to libunwind_shared.so (?).
ln -s $out/lib/libunwind.so $out/lib/libunwind_shared.so
'' + lib.optionalString (enableShared && stdenv.hostPlatform.isWindows) ''
ln -s $out/lib/libunwind.dll.a $out/lib/libunwind_shared.dll.a
'';
in
stdenv.mkDerivation (rec {