From 1afa19a68a54ad2bdfed43ff32df7643ab0a42f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 16 Feb 2010 09:08:40 +0000 Subject: [PATCH] libunistring: Try to get the shared library on Cygwin. svn path=/nixpkgs/trunk/; revision=20038 --- pkgs/development/libraries/libunistring/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libunistring/default.nix b/pkgs/development/libraries/libunistring/default.nix index 67bc42131ee..4219142250f 100644 --- a/pkgs/development/libraries/libunistring/default.nix +++ b/pkgs/development/libraries/libunistring/default.nix @@ -1,6 +1,6 @@ { fetchurl, stdenv, libiconv }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "libunistring-0.9.2.1"; src = fetchurl { @@ -47,3 +47,12 @@ stdenv.mkDerivation rec { platforms = stdenv.lib.platforms.all; }; } + +// + +# On Cygwin Libtool is unable to find `libiconv.dll' if there's no explicit +# `-L/path/to/libiconv' argument on the linker's command line; and since it +# can't find the dll, it will only create a static library. +(if (stdenv ? glibc) + then {} + else { configureFlags = "--with-libiconv-prefix=${libiconv}"; }))