]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix lto-bytecode errors: 336/head
authorMartin Liska <mliska@suse.cz>
Wed, 10 Jul 2019 13:31:21 +0000 (15:31 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 10 Jul 2019 13:31:21 +0000 (15:31 +0200)
[  250s] libsolv-devel.x86_64: E: lto-bytecode (Badness: 10000) /usr/lib64/libsolv.a
[  250s] libsolv-devel.x86_64: E: lto-bytecode (Badness: 10000) /usr/lib64/libsolvext.a

- Add -ffat-lto-objects to $optflags as the package provides
  static libraries
- Remove NO_BRP_STRIP_DEBUG=true as brp-15-strip-debug will
  not strip debug info for archives

package/libsolv.changes
package/libsolv.spec.in

index 0e2ad720d382441a0ef226ae43f32f454f28ab96..ddde8e247f1c50373555f59eeb254b98d4fd574a 100644 (file)
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Wed Jul 10 07:48:10 UTC 2019 - Martin Liška <mliska@suse.cz>
+
+- Add -ffat-lto-objects to $optflags as the package provides
+  static libraries
+- Remove NO_BRP_STRIP_DEBUG=true as brp-15-strip-debug will
+  not strip debug info for archives
+
 -------------------------------------------------------------------
 Thu Jun 13 16:15:39 CEST 2019 - mls@suse.de
 
index 40d266a89c371cdcceeaef0b5cde3c948df8dc90..b8985d5e24433d2cb785d9097421b18b506ae107 100644 (file)
@@ -207,6 +207,7 @@ Perl bindings for libsolv.
 %setup -q
 
 %build
+%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
 export CFLAGS="%{optflags}"
 export CXXFLAGS="$CFLAGS"
 
@@ -257,10 +258,6 @@ ln -s repo2solv %{buildroot}/%{_bindir}/repo2solv.sh
 %py3_compile %{buildroot}/%{python3_sitearch}
 %endif
 %endif
-%if %{with static}
-# we want to leave the .a file untouched
-export NO_BRP_STRIP_DEBUG=true
-%endif
 
 %check
 make ARGS=--output-on-failure test