1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-18 16:20:28 +02:00

gnu: blastem: Fix build.

* gnu/packages/emulators.scm (blastem)[arguments]: Update 'fix-source' phase
  to add '-fcommon' to CFLAGS.
This commit is contained in:
Guillaume Le Vaillant
2021-09-16 10:28:05 +02:00
parent bad54e6384
commit bbdc4d7347

View File

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