Score:3

Compiling the source code creates bigger files comparing w/ Ubuntu prebuilt packages, why?

se flag

Am I doing anything wrong? I'm building some libraries from the source code, but the file sizes are much much bigger comparing w/ Ubuntu packages. Here is an example.

https://github.com/linuxwacom/libwacom built w/ configure; make creates libwacom.so.2.6.1 (149,1 kB) and the same file in /usr/lib has only 41,8 kB. I assume debug version comes with postfix 'd', am I right - so what's wrong here? Ta.

Knud Larsen avatar
by flag
Simple : `$ strip libwacom.so.2.6.1` .... or install with `make install-strip` if this "make option" is available.
Score:9
pk flag

The shared library is stripped (with dh_strip in the package build rules, which in turn uses the strip command) when the package is built, and Link Time Optimisation (LTO) is also disabled.

You can see the source code for how this package is built on Launchpad. You can also see the source code for dh_strip for more information.

Fantastic Mr. Fox avatar
se flag
Thanks a lot. What would be the command for stripping all binary (exec) files in /usr/locale at once?
galexite avatar
pk flag
I’d guess `find /usr/local/lib -type f -regex '*.\.(a|so)$' -exec strip \{} \;`. That will (hopefully) strip all static and dynamic libraries in `/usr/local/lib`.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.