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 \