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

svn path=/nixpkgs/trunk/; revision=27568
wip/yesman
Ludovic Courtès 13 years ago
parent c1686c051d
commit 3da30b6770
  1. 10
      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 { }))

Loading…
Cancel
Save