civodul pushed a commit to branch master
in repository guix.

commit 96c335574d25f412ef1dda8b0949e59c32a27174
Author: Ludovic Courtès <[email protected]>
AuthorDate: Thu Feb 23 14:37:05 2023 +0100

    gnu: ibutils: Fix compilation.
    
    * gnu/packages/fabric-management.scm (ibutils)[arguments]: Add CFLAGS
    to #:configure-flags.
---
 gnu/packages/fabric-management.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/fabric-management.scm 
b/gnu/packages/fabric-management.scm
index dc32b163da..3ab1a35d7c 100644
--- a/gnu/packages/fabric-management.scm
+++ b/gnu/packages/fabric-management.scm
@@ -169,7 +169,11 @@ interface to this library is not guaranteed to be stable.")
                                   #$(this-package-input "opensm"))
                    (string-append "--with-tk-lib="
                                   #$(this-package-input "tk") "/lib")
-                   "--disable-static")))
+                   "--disable-static"
+
+                   ;; Address this link error:
+                   ;; ld: .libs/ibis.o:/ibis/src/ibis.c:55: multiple 
definition of `IbisObj'; .libs/ibis_wrap.o:/ibis/src/ibis_wrap.c:3007: first 
defined here
+                   "CFLAGS=-O2 -g -fcommon")))
     (synopsis "InfiniBand network utilities")
     (description "These command-line utilities allow for diagnosing and
 testing InfiniBand networks.")

Reply via email to