summary refs log tree commit diff
diff options
context:
space:
mode:
authorhsloan <ishaqsloan@gmail.com>2017-06-28 16:29:17 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-28 19:43:03 -0400
commit9cd606467fa0648e851bf8c5436bc773b6a1c5bc (patch)
tree4d23ed6681538fe7420ba1340e2814af2035d77b
parent3e69864717c89aa8cef18f17bcb1f8f16a6fdf1f (diff)
downloadnixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.tar
nixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.tar.gz
nixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.tar.bz2
nixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.tar.lz
nixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.tar.xz
nixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.tar.zst
nixpkgs-9cd606467fa0648e851bf8c5436bc773b6a1c5bc.zip
libtool2: Don't use stdenv ? cross
-rw-r--r--pkgs/development/tools/misc/libtool/libtool2.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/libtool/libtool2.nix b/pkgs/development/tools/misc/libtool/libtool2.nix
index a81255212da..f25fbcd00d8 100644
--- a/pkgs/development/tools/misc/libtool/libtool2.nix
+++ b/pkgs/development/tools/misc/libtool/libtool2.nix
@@ -1,4 +1,6 @@
-{ stdenv, fetchurl, m4, perl, help2man }:
+{ stdenv, fetchurl, m4, perl, help2man
+, buildPlatform, hostPlatform
+}:
 
 stdenv.mkDerivation rec {
   name = "libtool-2.4.6";
@@ -23,7 +25,7 @@ stdenv.mkDerivation rec {
 
   # Don't run the native `strip' when cross-compiling.  This breaks at least
   # with `.a' files for MinGW.
-  dontStrip = stdenv ? cross;
+  dontStrip = hostPlatform != buildPlatform;
 
   meta = {
     description = "GNU Libtool, a generic library support script";