From c7a79b12473615684290df62f3abcd8a919c0020 Mon Sep 17 00:00:00 2001 From: ghtm2 <98537985+ghtm2@users.noreply.github.com> Date: Sun, 3 Jul 2022 15:21:17 +0200 Subject: [PATCH] Use ld.bfd on Fedora 36 Link to upstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2043178 --- centos/rspamd.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/centos/rspamd.spec b/centos/rspamd.spec index ed230fe5c..85aab6018 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -54,6 +54,9 @@ lua. -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_C_FLAGS_RELEASE="%{optflags}" \ -DCMAKE_CXX_FLAGS_RELEASE="%{optflags}" \ +%if 0%{?fedora} >= 36 + -DLINKER_NAME=/usr/bin/ld.bfd \ +%endif -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCONFDIR=%{_sysconfdir}/rspamd \ -DMANDIR=%{_mandir} \ -- 2.39.5