Skip to content

Commit

Permalink
guile: Don't use stdenv.cross
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Jun 28, 2017
1 parent deb8fae commit c3c5793
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/interpreters/guile/2.0.nix
@@ -1,5 +1,7 @@
{ fetchurl, stdenv, libtool, readline, gmp, pkgconfig, boehmgc, libunistring
, libffi, gawk, makeWrapper, fetchpatch, coverageAnalysis ? null, gnu ? null }:
, libffi, gawk, makeWrapper, fetchpatch, coverageAnalysis ? null, gnu ? null
, hostPlatform
}:

# Do either a coverage analysis build or a standard build.
(if coverageAnalysis != null
Expand Down Expand Up @@ -84,7 +86,7 @@
setupHook = ./setup-hook-2.0.sh;

crossAttrs.preConfigure =
stdenv.lib.optionalString (stdenv.cross.config == "i586-pc-gnu")
stdenv.lib.optionalString (hostPlatform.isHurd)
# On GNU, libgc depends on libpthread, but the cross linker doesn't
# know where to find libpthread, which leads to erroneous test failures
# in `configure', where `-pthread' and `-lpthread' aren't explicitly
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/interpreters/guile/default.nix
@@ -1,5 +1,7 @@
{ fetchurl, stdenv, libtool, readline, gmp, pkgconfig, boehmgc, libunistring
, libffi, gawk, makeWrapper, fetchpatch, coverageAnalysis ? null, gnu ? null }:
, libffi, gawk, makeWrapper, fetchpatch, coverageAnalysis ? null, gnu ? null
, hostPlatform
}:

# Do either a coverage analysis build or a standard build.
(if coverageAnalysis != null
Expand Down Expand Up @@ -80,7 +82,7 @@
setupHook = ./setup-hook-2.2.sh;

crossAttrs.preConfigure =
stdenv.lib.optionalString (stdenv.cross.config == "i586-pc-gnu")
stdenv.lib.optionalString (hostPlatform.isHurd)
# On GNU, libgc depends on libpthread, but the cross linker doesn't
# know where to find libpthread, which leads to erroneous test failures
# in `configure', where `-pthread' and `-lpthread' aren't explicitly
Expand Down

0 comments on commit c3c5793

Please sign in to comment.