guix-commits
[Top][All Lists]
Advanced

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

branch core-updates-frozen updated: gnu: psm: Fix building with GCC 10.


From: guix-commits
Subject: branch core-updates-frozen updated: gnu: psm: Fix building with GCC 10.
Date: Sat, 11 Sep 2021 05:21:08 -0400

This is an automated email from the git hooks/post-receive script.

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

The following commit(s) were added to refs/heads/core-updates-frozen by this 
push:
     new abe4bda  gnu: psm: Fix building with GCC 10.
abe4bda is described below

commit abe4bdad800589a84d75903d5b85a1d798a6924a
Author: Felix Gruber <felgru@posteo.net>
AuthorDate: Sat Sep 11 08:46:34 2021 +0000

    gnu: psm: Fix building with GCC 10.
    
    I had to copy all the CFLAGS that were originally defined by the
    Makefile as they were otherwise all replaced by '-fcommon'.
    
    * gnu/packages/linux.scm (psm)[arguments]: Pass '-fcommon' to CFLAGS.
    
    Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
---
 gnu/packages/linux.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 1305a80..122c277 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -56,6 +56,7 @@
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
+;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -7256,6 +7257,11 @@ libraries, which are often integrated directly into 
libfabric.")
     (arguments
      '(#:make-flags `("PSM_USE_SYS_UUID=1" "CC=gcc" "WERROR="
                       ,(string-append "INSTALL_PREFIX=" %output)
+                      ,(string-append "CFLAGS=-Wall -fpic -fPIC -D_GNU_SOURCE"
+                                      " -funwind-tables -O3 -g3"
+                                      " -DPSM_USE_SYS_UUID"
+                                      " -Wno-strict-aliasing -DNVALGRIND"
+                                      " -fcommon")
                       ,(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
        #:tests? #f
        #:phases (modify-phases %standard-phases



reply via email to

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