diff --git a/knot.spec b/knot.spec index dd606c6..eda3300 100644 --- a/knot.spec +++ b/knot.spec @@ -8,7 +8,7 @@ Summary: High-performance authoritative DNS server Name: knot Version: %{VERSION} -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} License: GPLv3 Group: System Environment/Daemons URL: https://www.knot-dns.cz @@ -111,6 +111,12 @@ gpg2 --verify %{SOURCE1} %{SOURCE0} # disable debug code (causes unused warnings) CFLAGS="%{optflags} -DNDEBUG -Wno-unused" +# On RISC-V (riscv64) GCC doesn't inline atomic calls +# (should be fixed in future) +%ifarch riscv64 +export LDFLAGS="${LDFLAGS} -latomic %{__global_ldflags}" +%endif + %ifarch armv7hl i686 # 32-bit architectures sometimes do not have sufficient amount of # contiguous address space to handle default values @@ -254,6 +260,9 @@ systemd-tmpfiles --create %{_tmpfilesdir}/knot.conf &>/dev/null || : %{_pkgdocdir}/html %changelog +* Sat Nov 24 2018 David Abdurachmanov - 2.7.4-1.0.riscv64 +- Add support for RISC-V (riscv64) + * Tue Nov 13 2018 Tomas Krizek - 2.7.4-1 Knot DNS 2.7.4 (2018-11-13) ===========================