guix-commits
[Top][All Lists]
Advanced

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

08/08: gnu: nginx: Build optimized binaries.


From: guix-commits
Subject: 08/08: gnu: nginx: Build optimized binaries.
Date: Thu, 7 Apr 2022 17:19:01 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 1d4f2cdc827f1f0e697f339cc0229e464833ceff
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Apr 7 22:59:22 2022 +0200

    gnu: nginx: Build optimized binaries.
    
    * gnu/packages/web.scm (nginx)[arguments]: Add "-O2 -g" to CFLAGS.
---
 gnu/packages/web.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index eafb22b285..134cac1c9a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -427,7 +427,8 @@ the same, being completely separated from the Internet.")
               (setenv "CC" #$(cc-for-target))
               ;; Fix ./configure test for ‘#include <libxml/parser.h>’.
               (setenv "CFLAGS"          ; CPPFLAGS is not respected
-                      (string-append "-I" (search-input-directory
+                      (string-append "-O2 -g "
+                                     "-I" (search-input-directory
                                            inputs "/include/libxml2")))
               (format #t "configure flags: ~s~%" configure-flags)
               (apply invoke "./configure"



reply via email to

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