From 57b25ebcd6590c1ef3a710e0499bd2c9790edc41c08d65ec854da893de372bd9 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Wed, 2 Oct 2024 10:32:46 +0000 Subject: [PATCH] - restore the overriden CMAKE_SHARED_LINKER_FLAGS but only remove the --undefined option as rspamd doesnt have its dependencies between parts of the code correct OBS-URL: https://build.opensuse.org/package/show/server:mail/rspamd?expand=0&rev=123 --- rspamd.changes | 7 +++++++ rspamd.spec | 2 ++ 2 files changed, 9 insertions(+) diff --git a/rspamd.changes b/rspamd.changes index 717ec6a..3e2fc17 100644 --- a/rspamd.changes +++ b/rspamd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 2 10:28:56 UTC 2024 - Marcus Rueckert + +- restore the overriden CMAKE_SHARED_LINKER_FLAGS but only remove + the --undefined option as rspamd doesnt have its dependencies + between parts of the code correct + ------------------------------------------------------------------- Wed Oct 2 09:59:49 UTC 2024 - Marcus Rueckert diff --git a/rspamd.spec b/rspamd.spec index c3002ce..869cff5 100644 --- a/rspamd.spec +++ b/rspamd.spec @@ -121,6 +121,7 @@ BuildRequires: pkgconfig(systemd) %{?systemd_ordering} %endif BuildRequires: lapack-devel +BuildRequires: lua%{?lua_version}-lpeg BuildRequires: pkgconfig(libunwind) BuildRequires: pkgconfig(libxxhash) BuildRequires: pkgconfig(libzstd) @@ -185,6 +186,7 @@ export CXX="g++-%{?force_gcc_version}" %if 0%{suse_version} == 1315 -DCMAKE_USER_MAKE_RULES_OVERRIDE="" \ %endif + -DCMAKE_SHARED_LINKER_FLAGS='-flto=auto -Wl,--as-needed -Wl,-z,now' \ -DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now -pie" \ -DRSPAMD_LIBDIR=%{_libdir}/rspamd \ -DCONFDIR=%{_sysconfdir}/rspamd \