libiconv: fix on mingw
This commit is contained in:
parent
9ea3e371df
commit
a047ba25f4
@ -1,6 +1,6 @@
|
|||||||
{ fetchurl, stdenv, lib }:
|
{ fetchurl, stdenv, lib }:
|
||||||
|
|
||||||
assert (!stdenv.isLinux);
|
assert !stdenv.isLinux || stdenv ? cross; # TODO: improve on cross
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libiconv-1.14";
|
name = "libiconv-1.14";
|
||||||
@ -15,6 +15,12 @@ stdenv.mkDerivation rec {
|
|||||||
./libiconv-1.14-wchar.patch
|
./libiconv-1.14-wchar.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch =
|
||||||
|
lib.optionalString (stdenv.cross.libc or null == "msvcrt")
|
||||||
|
''
|
||||||
|
sed '/^_GL_WARN_ON_USE (gets/d' -i srclib/stdio.in.h
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
# On Cygwin, Libtool produces a `.dll.a', which is not a "real" DLL
|
# On Cygwin, Libtool produces a `.dll.a', which is not a "real" DLL
|
||||||
# (Windows' linker would need to be used somehow to produce an actual
|
# (Windows' linker would need to be used somehow to produce an actual
|
||||||
|
Loading…
x
Reference in New Issue
Block a user