Am 31.05.2017 um 16:35 schrieb Timo Sirainen:
On 31 May 2017, at 16.53, Reindl Harald <h.reindl@thelounge.net <mailto:h.reindl@thelounge.net>> wrote:
LTO build is as broken as 2.2.30
libtool: link: ( cd ".libs" && rm -f "lib10_quota_plugin.la" && ln -s "../lib10_quota_plugin.la" "lib10_quota_plugin.la" ) /tmp/ccGO7JSw.ltrans4.ltrans.o:<artificial>:function imapc_quota_refresh.lto_priv.22: error: undefined reference to 'imapc_storage_client_register_untagged' /tmp/ccGO7JSw.ltrans4.ltrans.o:<artificial>:function imapc_quota_refresh.lto_priv.22: error: undefined reference to 'imapc_storage_client_register_untagged'
Did you give --with-storages parameter? If not, I don't really see why it would fail. What configure options & environments did you use?
unchanged as for all othe rversions including 2.2.29.1 and the only change is the new tarball
%prep %setup -q -n %{name}-%{version}
%build
export CFLAGS="%{optflags} -fPIC -flto -ffat-lto-objects -fuse-ld=gold
-fuse-linker-plugin -Wno-stack-protector -Wa,--noexecstack"
export CXXFLAGS="$CFLAGS"
export FFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
export CC="gcc $CFLAGS"
export SH_LDFLAGS="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
-Wl,-z,noexecstack %{optflags} -flto -ffat-lto-objects -fuse-ld=gold
-fuse-linker-plugin -Wno-stack-protector -Wa,--noexecstack"
export LDFLAGS="$SH_LDFLAGS -pie -fPIE"
%configure 
INSTALL_DATA="install -c -p -m644" 
--docdir=%{_docdir}/%{name}-%{version} 
--disable-static 
--disable-largefile 
--disable-rpath 
--with-gnu-ld 
--with-pic 
--with-sql=yes 
--with-mysql 
--with-libcap 
--with-shared-libs 
--with-ssl=openssl 
--with-gssapi 
--with-ssldir=%{ssldir} 
--with-storages=pop3c 
--with-notify=none 
--without-bsdauth 
--without-gc 
--without-docs 
--without-shadow 
--without-nss 
--without-pam 
--without-ldap 
--without-pgsql 
--without-sqlite 
--without-zlib 
--without-bzlib 
--without-lz4 
--without-vpopmail 
--without-cdb 
--without-lucene 
--without-stemmer 
--without-solr 
--without-sia 
--without-libwrap
%{__make} %{?_smp_mflags}