guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: dosbox-staging: Build with upstream's release options.


From: guix-commits
Subject: 01/02: gnu: dosbox-staging: Build with upstream's release options.
Date: Sat, 26 Jun 2021 11:40:17 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 5fd319fb7b77bd1aca9854b9d398b1abf492d10b
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Jun 25 19:58:24 2021 +0200

    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.
---
 gnu/packages/emulators.scm | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 130dfd1..6150725 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -343,10 +343,22 @@ older games.")
     (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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]