Re: Packaging:library packaging stuff
Adrian von Bidder wrote:
>>> * How do I pass the right linker flags (-Wl,--as-needed?) through cmake
>>> to= =20
>>> the linker? Whatever I tried so far, it was ignored and I get a few=20
>>> warnings from dpkg-shlibdeps. (This is more a question of style,
>>> since=20 they're libraries I'd expect a KDE user has installed in any
>>> case.)
>>
>>-DCMAKE_LD_FLAGS="-Wl,--as-needed -Wl,-z,defs".
>>
>>Unless you know what you are doing, don't pass --as-needed with out
>>--no-undefined.
>
> Ok. Wasn't there some debconf talk some time ago about --as-needed?
> Slides or other paper available? I think the section in libpkg-guide
> about this issue is a bit short (I'll try to imrpove that section and at
> least put ion the hint about using --no-undefined)
Note that the --no-undefined flag can break builds if you have plugins that
expect to use symbols from the binary they are loaded from.
--
Felipe Sateler
Reply to: