guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: hurd: Fix build.


From: guix-commits
Subject: 03/03: gnu: hurd: Fix build.
Date: Tue, 5 Oct 2021 04:47:45 -0400 (EDT)

mothacehe pushed a commit to branch core-updates-frozen
in repository guix.

commit 5f1e33f76c1c6eb3d9c90eac9bd94cdacf8bfd2a
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Tue Oct 5 08:46:15 2021 +0000

    gnu: hurd: Fix build.
    
    * gnu/packages/hurd.scm (hurd)[configure-flags]: Turn it into a GEXP. Pass 
the
    -fcommon flag to fix the build with GCC 10.
---
 gnu/packages/hurd.scm | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 7a0236c..f301929 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -508,16 +508,18 @@ exec ${system}/rc \"$@\"
                (copy-file "unifont"
                           (string-append datadir "/vga-system.bdf"))
                #t))))
-       #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
-                                              %output "/lib")
-                          "--disable-ncursesw"
-                          "--without-libbz2"
-                          "--without-libz"
-                          "--without-parted"
-                          ;; This is needed to pass the configure check for
-                          ;; clnt_create
-                          "ac_func_search_save_LIBS=-ltirpc"
-                          "ac_cv_search_clnt_create=false")))
+       #:configure-flags
+       ,#~(list (string-append "LDFLAGS=-Wl,-rpath="
+                               #$output "/lib")
+                "--disable-ncursesw"
+                "--without-libbz2"
+                "--without-libz"
+                "--without-parted"
+                ;; This is needed to pass the configure check for
+                ;; clnt_create
+                "ac_func_search_save_LIBS=-ltirpc"
+                "ac_cv_search_clnt_create=false"
+                "CFLAGS=-fcommon")))
     (build-system gnu-build-system)
     (inputs
      `(("glibc-hurd-headers" ,glibc/hurd-headers)



reply via email to

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