GNU bug report logs - #63229
[PATCH] gnu: rlottie: Fix building with GCC.

Previous Next

Package: guix-patches;

Reported by: unwox <me <at> unwox.com>

Date: Tue, 2 May 2023 07:58:02 UTC

Severity: normal

Tags: patch

Done: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: unwox <me <at> unwox.com>
To: 63229 <at> debbugs.gnu.org
Cc: unwox <me <at> unwox.com>
Subject: [bug#63229] [PATCH] gnu: rlottie: Fix building with GCC.
Date: Tue,  2 May 2023 12:49:34 +0600
std::numeric_limits requires "#include <limits>" when building with
cpp_std=c++14. This patch fixes the issue by specifying gnu++17 as
a stdlib.

* gnu/packages/animation.scm (rlottie): Specify -Dcpp_std option.
---
 gnu/packages/animation.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm
index 4c03b78717..b0bf2c672b 100644
--- a/gnu/packages/animation.scm
+++ b/gnu/packages/animation.scm
@@ -83,7 +83,8 @@ (define-public rlottie
      `(#:configure-flags
        (list
         "-Dlog=true"
-        "-Dtest=true")))
+        "-Dtest=true"
+        "-Dcpp_std=gnu++17")))
     (native-inputs
      (list googletest pkg-config))
     (synopsis "Lottie Animation Library")

base-commit: 39ba8a10971f15264966823e8696d63c2995df86
-- 
2.39.2





This bug report was last modified 2 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.