mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 23:32:24 -05:00
gnu: dosbox-staging: Build with upstream's release options.
* gnu/packages/emulators.scm (dosbox-staging)[arguments]: Produce a more optimised binary without run-time debugging overhead.
This commit is contained in:
parent
e8a0d0b209
commit
5fd319fb7b
1 changed files with 16 additions and 4 deletions
|
@ -343,10 +343,22 @@ (define-public dosbox-staging
|
|||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags
|
||||
;; Several files #include <SDL_net.h> instead of <SDL2/SDL_net.h>,
|
||||
;; including configure.ac itself.
|
||||
(list (string-append "CXXFLAGS=-I" (assoc-ref %build-inputs "sdl2")
|
||||
"/include/SDL2"))))
|
||||
(let* ((flags (list "-O3"
|
||||
;; From scripts/automator/build/gcc-defaults.
|
||||
"-fstrict-aliasing"
|
||||
"-fno-signed-zeros"
|
||||
"-fno-trapping-math"
|
||||
"-fassociative-math"
|
||||
"-frename-registers"
|
||||
"-ffunction-sections"
|
||||
"-fdata-sections"))
|
||||
(CFLAGS (string-join flags " ")))
|
||||
;; Several files #include <SDL_net.h> instead of <SDL2/SDL_net.h>,
|
||||
;; including configure.ac itself.
|
||||
(list (string-append "CPPFLAGS=-I" (assoc-ref %build-inputs "sdl2")
|
||||
"/include/SDL2")
|
||||
(string-append "CFLAGS=" CFLAGS)
|
||||
(string-append "CXXFLAGS=-DNDEBUG " CFLAGS)))))
|
||||
(native-inputs
|
||||
`(("autoconf" ,autoconf)
|
||||
("automake" ,automake)
|
||||
|
|
Loading…
Reference in a new issue