Archived
1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

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