From 3da30b67706ff8418b3c5860c6c2ba464f74bca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 1 Jul 2011 07:42:23 +0000 Subject: [PATCH] GNU Libtool: Don't run the native `strip' when cross-compiling. svn path=/nixpkgs/trunk/; revision=27568 --- pkgs/development/tools/misc/libtool/libtool2.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/libtool/libtool2.nix b/pkgs/development/tools/misc/libtool/libtool2.nix index 8c15eec8094..5cdb8c9eef4 100644 --- a/pkgs/development/tools/misc/libtool/libtool2.nix +++ b/pkgs/development/tools/misc/libtool/libtool2.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, m4, perl, lzma }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "libtool-2.4"; src = fetchurl { @@ -38,3 +38,11 @@ stdenv.mkDerivation rec { maintainers = [ stdenv.lib.maintainers.ludo ]; }; } + +// + +# Don't run the native `strip' when cross-compiling. This breaks at least +# with `.a' files for MinGW. +(if (stdenv ? cross) + then { dontNativeStrip = true; } + else { }))