summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid McFarland <corngood@gmail.com>2017-05-23 10:36:02 -0300
committerDavid McFarland <corngood@gmail.com>2017-06-26 09:26:10 -0300
commit3c76cd7626dd5db7b3d5a83dbb054cd414631454 (patch)
treedb873a4de4832e7f966dfd1d9f520bb9bb59e900
parent087c32715b9ed50a45e81fc438f179a899ea96e0 (diff)
downloadnixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.tar
nixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.tar.gz
nixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.tar.bz2
nixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.tar.lz
nixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.tar.xz
nixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.tar.zst
nixpkgs-3c76cd7626dd5db7b3d5a83dbb054cd414631454.zip
libxslt: fix cygwin libtool error
-rw-r--r--pkgs/development/libraries/libxslt/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix
index 4647eecf87d..9e2c05575ec 100644
--- a/pkgs/development/libraries/libxslt/default.nix
+++ b/pkgs/development/libraries/libxslt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs, python2
+{ stdenv, hostPlatform, fetchurl, fetchpatch, libxml2, findXMLCatalogs, python2
 , cryptoSupport ? false
 , pythonSupport ? (! stdenv ? cross)
 }:
@@ -18,6 +18,12 @@ stdenv.mkDerivation rec {
 
   patches = stdenv.lib.optional stdenv.isSunOS ./patch-ah.patch;
 
+  # fixes: can't build x86_64-unknown-cygwin shared library unless -no-undefined is specified
+  postPatch = optionalString hostPlatform.isCygwin ''
+    substituteInPlace tests/plugins/Makefile.in \
+      --replace 'la_LDFLAGS =' 'la_LDFLAGS = $(WIN32_EXTRA_LDFLAGS)'
+  '';
+
   outputs = [ "bin" "dev" "out" "doc" ] ++ stdenv.lib.optional pythonSupport "py";
 
   buildInputs = [ libxml2.dev ] ++ stdenv.lib.optionals pythonSupport [ libxml2.py python2 ];