<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 5, 2014 at 5:38 AM, Simon McVittie <span dir="ltr"><<a href="mailto:simon.mcvittie@collabora.co.uk" target="_blank">simon.mcvittie@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Let me turn this around. Why do you want it not to be statically linked?<br></div>
The usual reasons for wanting to avoid static linking are on-disk size,<br>
in-memory size, and security updates.<br></blockquote><div><br></div><div>FWIW, I only asked because dbus-daemon, libdbus and dbus-daemon-launch-helper (which I forgot to mention in my initial mail, sorry) came up as a red flag we we ran a script that detects overlap of symbols on all ELF files on a system.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Disk size:<br>
<br>
On my x86-64 Debian laptop, the shared libdbus is 280K. All the dbus-*<br>
tools are linked to it dynamically, except for dbus-daemon (408K) and<br>
dbus-daemon-launch-helper (280K). So the most you could possibly save<br>
like this would be to cut up to 280K each off the on-disk size of<br>
dbus-daemon and d-d-l-h (in practice it'll be less, because I'm sure<br>
they don't use all of libdbus). Sure, that would be an improvement, but<br>
I'm not sure the cost/benefit ratio is significant (particularly if<br>
dynamic linking overhead eats up some of the benefit).<br></blockquote><div><br></div><div>For tiny embedded systems, 500K disk space savings actually sounds pretty good. Memory sharing between dbus-daemon and libdbus-1-using apps sounds good too even if it's only 280k-ish (the more memory we can give back to the application, the better etc.). On a desktop system, sure, there's no point :-)</div>
<div><br></div><div>(Of course, in a kdbus future this problem - and many others - sorta goes away. That future isn't now and not for a while, however.)</div><div><br></div><div>Thanks,</div><div>David</div></div></div>
</div>