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:
parent
b27d3265c6
commit
b716d17e1c
1 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,12 @@
|
||||||
(("\\./configure")
|
(("\\./configure")
|
||||||
(string-append (which "sh") " configure")))
|
(string-append (which "sh") " configure")))
|
||||||
#t))
|
#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
|
(replace 'build
|
||||||
(lambda* (#:key system outputs #:allow-other-keys)
|
(lambda* (#:key system outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
|
Reference in a new issue