GNU Libtool: Don't run the native `strip' when cross-compiling.

svn path=/nixpkgs/trunk/; revision=27568
This commit is contained in:
Ludovic Courtès 2011-07-01 07:42:23 +00:00
parent c1686c051d
commit 3da30b6770

View File

@ -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 { }))