[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: exiv2: Get rid of reference to GCC.
From: |
guix-commits |
Subject: |
01/02: gnu: exiv2: Get rid of reference to GCC. |
Date: |
Fri, 20 Oct 2023 05:56:33 -0400 (EDT) |
iyzsong pushed a commit to branch master
in repository guix.
commit b099e5e980339d0ebe9e09f868e13a23b6305762
Author: 宋文武 <iyzsong@member.fsf.org>
AuthorDate: Mon Aug 7 22:03:03 2023 +0800
gnu: exiv2: Get rid of reference to GCC.
This fixes <https://issues.guix.gnu.org/57677>.
* gnu/packages/image.scm (exiv2)[arguments]: Add phase to
remove _GLIBCXX_ASSERTIONS from compiler flags.
---
gnu/packages/image.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index dadb5f3796..d237bf689c 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1528,6 +1528,12 @@ channels.")
"-DEXIV2_ENABLE_BMFF=ON")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-gcc-reference
+ (lambda _
+ ;; _GLIBCXX_ASSERTIONS brings reference to GCC.
+ (substitute* "cmake/compilerFlags.cmake"
+ (("add_compile_options[(]-Wp,-D_GLIBCXX_ASSERTIONS[)]")
+ ""))))
(add-after 'install 'delete-static-libraries
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))