wine: fix missing runpath entries (#462049)

This commit is contained in:
Aleksana
2025-11-16 14:02:30 +00:00
committed by GitHub

View File

@@ -209,7 +209,7 @@ stdenv.mkDerivation (
# LD_LIBRARY_PATH.
NIX_LDFLAGS = toString (
map (path: "-rpath " + path) (
map (x: "${lib.getLib x}/lib") [ stdenv.cc.cc ]
map (x: "${lib.getLib x}/lib") ([ stdenv.cc.cc ] ++ finalAttrs.buildInputs)
# libpulsecommon.so is linked but not found otherwise
++ lib.optionals supportFlags.pulseaudioSupport (
map (x: "${lib.getLib x}/lib/pulseaudio") (toBuildInputs pkgArches (pkgs: [ pkgs.libpulseaudio ]))