diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-05-29 09:08:55 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-05-29 09:08:55 +0000 |
commit | 8c810af59b9336f53d9f3d9547b10ea647d20999 (patch) | |
tree | 8af88c2d7bc01e469ac088b0a39fd25130802334 /pkgs | |
parent | b82a8f631952c774c38202afe8a481b3865caf48 (diff) | |
download | nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.tar nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.tar.gz nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.tar.bz2 nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.tar.lz nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.tar.xz nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.tar.zst nixlib-8c810af59b9336f53d9f3d9547b10ea647d20999.zip |
GNU libiconv: Build the static library on Cygwin.
svn path=/nixpkgs/trunk/; revision=34269
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libiconv/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libiconv/default.nix b/pkgs/development/libraries/libiconv/default.nix index 459987efa474..f2958e4668de 100644 --- a/pkgs/development/libraries/libiconv/default.nix +++ b/pkgs/development/libraries/libiconv/default.nix @@ -1,6 +1,6 @@ { fetchurl, stdenv }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "libiconv-1.13.1"; src = fetchurl { @@ -30,3 +30,13 @@ stdenv.mkDerivation rec { platforms = [ "i686-cygwin" "i686-darwin" ]; }; } + +// + +stdenv.lib.optionalAttrs stdenv.isCygwin { + # 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 + # DLL.) Thus, build the static library too, and this is what Gettext + # will actually use. + configureFlags = [ "--enable-static" ]; +}) |