diff --git a/systemd.spec b/systemd.spec index c6432c5..2d7c98f 100644 --- a/systemd.spec +++ b/systemd.spec @@ -19,7 +19,11 @@ # e.g. when re-building cryptsetup on a json-c SONAME-bump. %bcond_with bootstrap %bcond_without tests +%ifnarch riscv64 %bcond_without lto +%else +%bcond_with lto +%endif # Support for quick builds with rpmbuild --build-in-place. # See README.build-in-place. @@ -33,7 +37,7 @@ Version: 253.2 # determine the build information from local checkout Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/') %endif -Release: %autorelease -e 2.riscv64 +Release: %autorelease -e 4.riscv64 %global stable %(c="%version"; [ "$c" = "${c#*.*}" ]; echo $?)