guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#63229] [PATCH] gnu: rlottie: Fix building with GCC.


From: unwox
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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]