Because LTO is enabled by default in Ubuntu, we are carrying a diff to disable LTO for this package downstream in Ubuntu.

It would be great if we could do the same in Debian, which would benefit both Debian if/when the default is changed and Ubuntu because it allows dropping the diff.

Attaching a debdiff.
diff -Nru libvpx-1.15.0/debian/changelog libvpx-1.15.0/debian/changelog
--- libvpx-1.15.0/debian/changelog      2024-12-15 19:49:35.000000000 +0100
+++ libvpx-1.15.0/debian/changelog      2021-08-12 04:25:45.000000000 +0200
@@ -1,3 +1,10 @@
+libvpx (1.15.0-2) UNRELEASED; urgency=medium
+
+  * d/rules: Disable LTO and fix FTBFS when building with GCC 11.
+    (LP: #1939640) (Closes: #1015532)
+
+ -- Sergio Durigan Junior <sergio.duri...@canonical.com>  Wed, 11 Aug 2021 
22:25:45 -0400
+
 libvpx (1.15.0-1) unstable; urgency=medium
 
   * New upstream version 1.15.0
diff -Nru libvpx-1.15.0/debian/rules libvpx-1.15.0/debian/rules
--- libvpx-1.15.0/debian/rules  2024-12-15 19:49:35.000000000 +0100
+++ libvpx-1.15.0/debian/rules  2021-08-12 04:25:45.000000000 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
 export DEB_CFLAGS_MAINT_APPEND = -Wall
 export DEB_CXXFLAGS_MAINT_APPEND = -Wall
 

Reply via email to