summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2021-09-16 10:28:05 +0200
committerGuillaume Le Vaillant <glv@posteo.net>2021-09-16 10:28:05 +0200
commitbbdc4d73476bdf81842e09fd99dd843c22a0b53a (patch)
tree042e72241f4d08aa33345a39da632acef1381101
parentbad54e6384cce74ad5ed41ede6bcb2822aa6bdc8 (diff)
downloadguix-bbdc4d73476bdf81842e09fd99dd843c22a0b53a.tar.gz
gnu: blastem: Fix build.
* gnu/packages/emulators.scm (blastem)[arguments]: Update 'fix-source' phase
  to add '-fcommon' to CFLAGS.
-rw-r--r--gnu/packages/emulators.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 754aa68620..c992ba5407 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2021 Felipe Balbi <balbi@kernel.org>
 ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -183,7 +184,10 @@ SuperCPU.")
          (add-after 'unpack 'fix-source
            (lambda _
              (substitute* (find-files "." ".*\\.[ch]")
-               (("\"zlib/zlib.h\"") "<zlib.h>"))))
+               (("\"zlib/zlib.h\"") "<zlib.h>"))
+             (substitute* "Makefile"
+               (("CFLAGS:=-std=gnu99" all)
+                (string-append all " -fcommon")))))
          (delete 'configure)
          (replace 'install
            (lambda* args