mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
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).
This commit is contained in:
parent
afaf1c2f77
commit
8b292a1b35
@ -96,8 +96,12 @@ rec {
|
|||||||
name = name + "-" + cross.config;
|
name = name + "-" + cross.config;
|
||||||
nativeBuildInputs = nativeBuildInputsDrvs
|
nativeBuildInputs = nativeBuildInputsDrvs
|
||||||
++ nativeInputsFromBuildInputs
|
++ nativeInputsFromBuildInputs
|
||||||
++ [ gccCross binutilsCross ] ++
|
++ [ gccCross binutilsCross ]
|
||||||
stdenv.lib.optional selfNativeBuildInput nativeDrv;
|
++ 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
|
# Cross-linking dynamic libraries, every buildInput should
|
||||||
# be propagated because ld needs the -rpath-link to find
|
# be propagated because ld needs the -rpath-link to find
|
||||||
|
Loading…
Reference in New Issue
Block a user