From 9cd606467fa0648e851bf8c5436bc773b6a1c5bc Mon Sep 17 00:00:00 2001 From: hsloan Date: Wed, 28 Jun 2017 16:29:17 -0400 Subject: [PATCH] libtool2: Don't use stdenv ? cross --- pkgs/development/tools/misc/libtool/libtool2.nix | 6 ++++-- 1 file 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";