gnu: mupen64plus-core: Add -fcommon to CFLAGS.
* gnu/packages/emulators.scm (mupen64plus-core)[arguments]: Replace 'configure phase to patch Makefile; remove trailing #T from 'chdir-to-project-directory phase.
This commit is contained in:
parent
3d109b0306
commit
3e678de04c
1 changed files with 7 additions and 6 deletions
|
@ -842,13 +842,14 @@ from an emulator---from save states to scaling filters.")
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; The mupen64plus build system has no configure phase.
|
;; The mupen64plus build system has no configure phase.
|
||||||
(delete 'configure)
|
(replace 'configure
|
||||||
|
(lambda _
|
||||||
|
(substitute* "projects/unix/Makefile"
|
||||||
|
(("\\$\\(CFLAGS\\)")
|
||||||
|
"$(CFLAGS) -fcommon"))))
|
||||||
;; Makefile is in a subdirectory.
|
;; Makefile is in a subdirectory.
|
||||||
(add-before
|
(add-before 'build 'chdir-to-project-directory
|
||||||
'build 'chdir-to-project-directory
|
(lambda _ (chdir "projects/unix"))))
|
||||||
(lambda _
|
|
||||||
(chdir "projects/unix")
|
|
||||||
#t)))
|
|
||||||
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
||||||
(list "all" (string-append "PREFIX=" out)))
|
(list "all" (string-append "PREFIX=" out)))
|
||||||
;; There are no tests.
|
;; There are no tests.
|
||||||
|
|
Reference in a new issue