me
/
guix
Archived
1
0
Fork 0

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>
master
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
1 changed files with 6 additions and 0 deletions

View File

@ -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")))