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.

  • 1
    Simple : $ strip libwacom.so.2.6.1 .... or install with make install-strip if this "make option" is available. Aug 3 at 10:33

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.

  • Thanks a lot. What would be the command for stripping all binary (exec) files in /usr/locale at once? Aug 3 at 14:14
  • 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.
    – galexite
    Aug 3 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.