Hello, Marek. On Wednesday, 19 July 2017 at 12:28, Marek Tamaskovic wrote: > I am trying to pack one library and I get strip error. Basically it's > saying this 'strip: plugin needed to handle lto object'. I tired remove > '-flto' but then occurs warning in dwz that it does not have files for > optimalization. Building is handled by cmake. I am clueless. Any ideas? > tested on F25 F26 > > SRPM: www.stud.fit.vutbr.cz/~xtamas01/libcbor-0.5.0-1.fc26.src.rpm > > /usr/bin/strip: > /home/user/rpmbuild/BUILDROOT/libcbor-0.5.0-1.fc26.x86_64/usr/lib64/stslrWiy/maps.c.o: > plugin needed to handle lto object > /usr/bin/strip: > /home/user/rpmbuild/BUILDROOT/libcbor-0.5.0-1.fc26.x86_64/usr/lib64/stslrWiy/tags.c.o: > plugin needed to handle lto object > /usr/bin/strip: > /home/user/rpmbuild/BUILDROOT/libcbor-0.5.0-1.fc26.x86_64/usr/lib64/stslrWiy/ints.c.o: > plugin needed to handle lto object Why are you not using the %cmake macro? https://fedoraproject.org/wiki/Packaging:Cmake The relevant sections of your spec file should look like this: %build %cmake . %make_build cbor_shared %install %make_install You should also split the headers and .so links into a -devel subpackage: https://fedoraproject.org/wiki/Packaging:Guidelines#Devel_Packages . Also, you shouldn't build the shared library at all: https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries Regards, Dominik -- Fedora http://fedoraproject.org/wiki/User:Rathann RPMFusion http://rpmfusion.org "Faith manages." -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations" _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx