summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-08-24 15:01:38 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-08-24 15:01:38 +0200
commit65777dce0fd1e971d574f5423d416c136d720727 (patch)
tree2630e465d9c1aa98295baa02262763085b2edf21
parent4c0c65acfade63ce0549115d19db4b639c1e9992 (diff)
downloadguix-65777dce0fd1e971d574f5423d416c136d720727.tar.gz
gnu: guile-zlib: Fix cross-compilation.
* gnu/packages/guile.scm (guile-zlib)[native-inputs]: Add "guile" when
cross-compiling.
-rw-r--r--gnu/packages/guile.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 71d8a7bfde..99c5a2dc9d 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -803,7 +803,10 @@ manipulate repositories of the Git version control system.")
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
-       ("pkg-config" ,pkg-config)))
+       ("pkg-config" ,pkg-config)
+       ,@(if (%current-target-system)
+             `(("guile" ,guile-3.0))   ;for 'guild compile' and 'guile-3.0.pc'
+             '())))
     (inputs
      `(("guile" ,guile-3.0)
        ("zlib" ,zlib)))