From 1e4dd44a8a2e69dc40a23e56b5d26b955d76ac3b Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Sun, 3 Dec 2023 16:14:00 +0200 Subject: [PATCH] Test -ffp-contract=off Signed-off-by: David Abdurachmanov --- lib2geom.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib2geom.spec b/lib2geom.spec index cd676cf..ce057a8 100644 --- a/lib2geom.spec +++ b/lib2geom.spec @@ -3,7 +3,7 @@ Version: 1.3 %forgemeta Name: lib2geom -Release: %autorelease -e rvre0 +Release: %autorelease -e 0.riscv64 Summary: Easy to use 2D geometry library in C++ License: LGPL-2.1-only AND MPL-1.1 @@ -42,6 +42,11 @@ developing applications that use %{name}. %forgeautosetup -p1 %build +%ifarch riscv64 +export CLAGS="%{optflags} -ffp-contract=off" +export CXXLAGS="%{optflags} -ffp-contract=off" +%endif + %cmake -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -D2GEOM_BUILD_SHARED=ON \