This is an automated email from the git hooks/post-receive script.
arunisaac pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 3a555a93a9 gnu: crm114: Pass -fcommon to compiler.
3a555a93a9 is described below
commit 3a555a93a9f8e15095da8c79c7fa415ed21bf5b7
Author: Arun Isaac <[email protected]>
AuthorDate: Fri Jan 14 19:57:00 2022 +0530
gnu: crm114: Pass -fcommon to compiler.
* gnu/packages/mail.scm (crm114)[arguments]: Add -fcommon to CFLAGS.
---
gnu/packages/mail.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 9f70ae1b08..b50224befd 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -17,7 +17,7 @@
;;; Copyright © 2016, 2017 Troy Sankey <[email protected]>
;;; Copyright © 2016, 2017, 2018 Nikita <[email protected]>
;;; Copyright © 2016 Clément Lassieur <[email protected]>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Arun Isaac
<[email protected]>
+;;; Copyright © 2016–2022 Arun Isaac <[email protected]>
;;; Copyright © 2016 John Darrington <[email protected]>
;;; Copyright © 2016, 2018 Marius Bakke <[email protected]>
;;; Copyright © 2017 Thomas Danckaert <[email protected]>
@@ -4452,7 +4452,12 @@ ex-like commands on it.")
;; Inline functions can only be used from the same compilation
;; unit. This causes the build to fail.
(substitute* "crm_svm_matrix.c"
- (("^inline ") ""))))
+ (("^inline ") ""))
+ ;; Building with gcc 10 fails without the -fcommon flag. Add it
+ ;; to CFLAGS.
+ (substitute* "Makefile"
+ (("CFLAGS \\+= -DVERSION")
+ "CFLAGS += -fcommon -DVERSION"))))
(add-before 'install 'pre-install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))