Bug#1128504: Compile libraw with LTO

John Chittum john.chittum at canonical.com
Fri Feb 20 16:00:51 GMT 2026


Subject: Compile libraw with LTO
Package: libraw24
Source: libraw
X-Debugs-Cc: john.chittum at canonical.com
Version: 0.22.0-1

starting in libraw 0.21.5b-1, a libraw*.symbols file was introduced. This
caused build failures in Ubuntu due to our default setting of compiling
with +lto. This leads to a symbol mismatch as lto strips symbols.
Information on the diff in libraw 0.21.5b-1 is available at:

https://bugs.launchpad.net/ubuntu/+source/libraw/+bug/2141767

Ubuntu has been been publishing with LTO enabled for multiple releases, and
there have not been any bugs raised against libraw related to the stripped
symbols (as far as I can see). Would you consider using LTO flags for the
build and re-exporting the symbols? This will remove any delta between the
packages.

LTO should only be stripping unused and unexported symbols, which shouldn't
affect programs consuming the library. Currently the default Ubuntu flags
related to LTO are

fat-lto-objects
lto=auto

set in CFLAGS, CFLAGS_FOR_BUILD, CXXFLAGS, and CXXFLAGS_FOR_BUILD

-- 
-----------------------
Dr. John Chittum
Engineering Manager, Canonical, Debcrafters
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20260220/46975d5f/attachment.htm>


More information about the Pkg-phototools-devel mailing list