Skip to content

Commit 8b292a1

Browse files
committed
stdenv on mingw: fix 64-bin DLL detection in some cases
In particular, this makes 64-bit libpng create DLL now, and thus depending packages won't fail anymore (e.g. freetype).
1 parent afaf1c2 commit 8b292a1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

pkgs/stdenv/adapters.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ rec {
9696
name = name + "-" + cross.config;
9797
nativeBuildInputs = nativeBuildInputsDrvs
9898
++ nativeInputsFromBuildInputs
99-
++ [ gccCross binutilsCross ] ++
100-
stdenv.lib.optional selfNativeBuildInput nativeDrv;
99+
++ [ gccCross binutilsCross ]
100+
++ stdenv.lib.optional selfNativeBuildInput nativeDrv
101+
# without proper `file` command, libtool sometimes fails
102+
# to recognize 64-bit DLLs
103+
++ stdenv.lib.optional (cross.config == "x86_64-w64-mingw32") pkgs.file
104+
;
101105

102106
# Cross-linking dynamic libraries, every buildInput should
103107
# be propagated because ld needs the -rpath-link to find

0 commit comments

Comments
 (0)