Comment 6 for bug 1937325

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Unfortunately, all of this comes down to the forced LTO. Disabling this in d/rules, per upstream, fixes the problem. He had a few more notes as well. It seems as though the Debian package is doing some unnecessary gymnastics, so this is a decent divergence.

diff --git a/debian/rules b/debian/rules
index a36f71d..6f12983 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,8 @@
 #!/usr/bin/make -f

 # Let's try to cut down noisy symbols to the official API
-export DEB_CFLAGS_MAINT_APPEND = -fvisibility=hidden
-export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden
+export DEB_CFLAGS_MAINT_APPEND = -fvisibility=hidden -fno-lto
+export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden -fno-lto

 -include /usr/share/cdbs/1/rules/upstream-tarball.mk
 -include /usr/share/cdbs/1/rules/utils.mk