[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/19: gnu: glm: Fix build with GCC 11.
From: |
guix-commits |
Subject: |
18/19: gnu: glm: Fix build with GCC 11. |
Date: |
Thu, 8 Sep 2022 15:45:21 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 712ee765300894cc86eae82df5b4afcaea982f53
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Aug 9 21:31:47 2022 +0200
gnu: glm: Fix build with GCC 11.
* gnu/packages/maths.scm (glm)[arguments]: Add phase set-environment.
---
gnu/packages/maths.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 6e9786a474..aa15666a5c 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
;;; Copyright © 2018 Nadya Voronova <voronovank@gmail.com>
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
-;;; Copyright © 2018, 2020, 2021 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2018, 2020-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018 Eric Brown <brown@fastmail.com>
;;; Copyright © 2018, 2021 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2018 Amin Bandali <bandali@gnu.org>
@@ -5111,6 +5111,13 @@ with C89.")
(build-system cmake-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
+ (add-before 'configure 'set-environment
+ (lambda _
+ ;; Pass "-fno-ipa-modref" flag to the compiler to work
+ ;; around a test failure with GCC 11. This is a
+ ;; header-only library so these flags only affect tests.
+ ;; See <https://github.com/g-truc/glm/pull/1087>.
+ (setenv "CXXFLAGS" "-O2 -g -fno-ipa-modref")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
;; Since version 0.9.9.6, 'make install' is not supported
- branch core-updates updated (884548b476 -> 8ea970a945), guix-commits, 2022/09/08
- 02/19: gnu: grep: Update to 3.8., guix-commits, 2022/09/08
- 10/19: gnu: libnftnl/fixed: Update to 1.2.3., guix-commits, 2022/09/08
- 08/19: gnu: libxau: Update to 1.0.10., guix-commits, 2022/09/08
- 12/19: gnu: poppler: Update to 22.09.0., guix-commits, 2022/09/08
- 07/19: gnu: xorgproto: Update to 2022.2., guix-commits, 2022/09/08
- 01/19: gnu: xz: Update to 5.2.6 [security fix]., guix-commits, 2022/09/08
- 18/19: gnu: glm: Fix build with GCC 11.,
guix-commits <=
- 17/19: gnu: Switch to GCC 11., guix-commits, 2022/09/08
- 04/19: gnu: gsasl: Update to 2.2.0., guix-commits, 2022/09/08
- 13/19: gnu: doxygen: Update to 1.9.5., guix-commits, 2022/09/08
- 03/19: gnu: gawk: Update to 5.2.0., guix-commits, 2022/09/08
- 05/19: gnu: ninja: Update to 1.11.1., guix-commits, 2022/09/08
- 06/19: gnu: libxslt: Update to 1.1.37., guix-commits, 2022/09/08
- 11/19: gnu: fontconfig: Update to 2.14.0., guix-commits, 2022/09/08
- 15/19: gnu: glibc: Update to 2.35., guix-commits, 2022/09/08
- 19/19: gnu: clang-runtime: Remove obsolete workaround., guix-commits, 2022/09/08
- 16/19: syscalls: Adjust for glibc 2.34 and later., guix-commits, 2022/09/08