summary refs log tree commit diff
diff options
context:
space:
mode:
authorZac Berkowitz <zac.berkowitz@gmail.com>2023-06-25 10:27:08 -0400
committerLudovic Courtès <ludo@gnu.org>2023-07-11 16:04:44 +0200
commitb716d17e1cbaa1362ea495370acf0178aa8347cc (patch)
tree60eca64737a68014d983211782c72ebfd67d8e62
parentb27d3265c61808028f4b4426bdd0eb5408550021 (diff)
downloadguix-b716d17e1cbaa1362ea495370acf0178aa8347cc.tar.gz
gnu: mit-scheme: Fix building
* gnu/packages/scheme.scm (mit-scheme)[arguments] Add 'set-env
  before 'configure, setting -Wno-array-parameter in CFLAGS and
  CPPFLAGS to ignore warning causing build break.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/scheme.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 2337b60ee9..215ea741f8 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -138,6 +138,12 @@
                (("\\./configure")
                 (string-append (which "sh") " configure")))
              #t))
+         ;; disable array-parameter warnings that become errors while
+         ;; compiling microcode target
+         (add-before 'configure 'set-flags
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "CFLAGS" "-Wno-array-parameter")
+             (setenv "CPPFLAGS" "-Wno-array-parameter")))
          (replace 'build
            (lambda* (#:key system outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))