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).
wip/yesman
Vladimír Čunát 8 years ago
parent afaf1c2f77
commit 8b292a1b35
  1. 8
      pkgs/stdenv/adapters.nix

@ -96,8 +96,12 @@ rec {
name = name + "-" + cross.config;
nativeBuildInputs = nativeBuildInputsDrvs
++ nativeInputsFromBuildInputs
++ [ gccCross binutilsCross ] ++
stdenv.lib.optional selfNativeBuildInput nativeDrv;
++ [ gccCross binutilsCross ]
++ stdenv.lib.optional selfNativeBuildInput nativeDrv
# without proper `file` command, libtool sometimes fails
# to recognize 64-bit DLLs
++ stdenv.lib.optional (cross.config == "x86_64-w64-mingw32") pkgs.file
;
# Cross-linking dynamic libraries, every buildInput should
# be propagated because ld needs the -rpath-link to find

Loading…
Cancel
Save