diff options
author | Zac Berkowitz <zac.berkowitz@gmail.com> | 2023-06-25 10:27:08 -0400 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-07-11 16:04:44 +0200 |
commit | b716d17e1cbaa1362ea495370acf0178aa8347cc (patch) | |
tree | 60eca64737a68014d983211782c72ebfd67d8e62 /gnu/packages/scheme.scm | |
parent | b27d3265c61808028f4b4426bdd0eb5408550021 (diff) | |
download | guix-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>
Diffstat (limited to 'gnu/packages/scheme.scm')
-rw-r--r-- | gnu/packages/scheme.scm | 6 |
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"))) |