Merge pull request #26884 from obsidiansystems/purge-stdenv-cross
Purge stdenv cross
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchurl, fetchpatch, replace, curl, expat, zlib, bzip2
|
||||
, useNcurses ? false, ncurses, useQt4 ? false, qt4, wantPS ? false, ps ? null
|
||||
, buildPlatform, hostPlatform
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@@ -35,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||
})] ++
|
||||
# Don't search in non-Nix locations such as /usr, but do search in our libc.
|
||||
[ ./search-path.patch ] ++
|
||||
optional (stdenv ? cross) (fetchurl {
|
||||
optional (hostPlatform != buildPlatform) (fetchurl {
|
||||
name = "fix-darwin-cross-compile.patch";
|
||||
url = "http://public.kitware.com/Bug/file_download.php?"
|
||||
+ "file_id=4981&type=bug";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user