View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#27
Originally Posted by auouymous View Post
I ran 'fakeroot dpkg-buildpackage' on the source and it didn't strip the binary but after stripping it was the same size as the one I built manually. Are those build options something I need to add? Do you know how to produce a stripped package?
The binary should be stripped automatically for the (non-debug) package. Here after a fresh build I get:

PHP Code:
[sbox-DIABLO_ARMEL: ~/matchbox-window-manager-1.2] > find . -name matchbox-window-manager -type f xargs file
./src/matchbox-window-manager:                                                      ELF 32-bit LSB executableARMversion 1 (SYSV), for GNU/Linux 2.6.8dynamically linked (uses shared libs), not stripped
./debian/matchbox-window-manager/usr/bin/matchbox-window-manager:                   ELF 32-bit LSB executableARMversion 1 (SYSV), for GNU/Linux 2.6.8dynamically linked (uses shared libs), stripped
./debian/matchbox-window-manager-dbg/usr/lib/debug/usr/bin/matchbox-window-managerELF 32-bit LSB executableARMversion 1 (ARM), dynamically linked (uses shared libs), not stripped
./debian/tmp/usr/bin/matchbox-window-manager:                                       ELF 32-bit LSB executableARMversion 1 (SYSV), for GNU/Linux 2.6.8dynamically linked (uses shared libs), not stripped 
(I do have the above DEB_BUILD_OPTIONS set in .profile)
 

The Following User Says Thank You to lma For This Useful Post: