about summary refs log tree commit diff
path: root/pkgs/development/tools/misc
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@yahoo.com>2017-06-28 21:39:16 -0400
committerGitHub <noreply@github.com>2017-06-28 21:39:16 -0400
commite1faeb574ae6f0946cdd8a3b32a5907e1d8e29da (patch)
tree9ee09b5bb752ff52f38d0d4dc19572d4b7fc0c68 /pkgs/development/tools/misc
parent425e9ce493218acc5dd001cf7656e45f73b82596 (diff)
parent9f156f4a8a945dee1beeb49f6c2acb395c0af9c8 (diff)
downloadnixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.tar
nixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.tar.gz
nixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.tar.bz2
nixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.tar.lz
nixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.tar.xz
nixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.tar.zst
nixlib-e1faeb574ae6f0946cdd8a3b32a5907e1d8e29da.zip
Merge pull request #26884 from obsidiansystems/purge-stdenv-cross
Purge stdenv cross
Diffstat (limited to 'pkgs/development/tools/misc')
-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 a81255212da5..f25fbcd00d84 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";