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>
This commit is contained in:
Zac Berkowitz 2023-06-25 10:27:08 -04:00 committed by Ludovic Courtès
parent b27d3265c6
commit b716d17e1c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -138,6 +138,12 @@ (define-public mit-scheme
(("\\./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")))