From: ghtm2 <98537985+ghtm2@users.noreply.github.com> Date: Sun, 3 Jul 2022 13:21:17 +0000 (+0200) Subject: Use ld.bfd on Fedora 36 X-Git-Tag: 3.3~144^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4211%2Fhead;p=rspamd.git Use ld.bfd on Fedora 36 Link to upstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2043178 --- 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} \