about summary refs log tree commit diff
path: root/pkgs/development/libraries/libiconv
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libiconv')
-rw-r--r--pkgs/development/libraries/libiconv/default.nix12
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" ];
+})