[arch-dev-public] Stripping of static libraries by makepkg

Ike Devolder ike.devolder at gmail.com
Mon Sep 16 14:01:03 EDT 2013


Op zondag 15 september 2013 23:06:42 schreef Dicebot:
> On 09/15/2013 09:42 PM, Dicebot wrote:
> > My default makepkg.conf looks like this:
> > 
> > ``` STRIP_BINARIES="--strip-all" #-- Options to be used when
> > stripping shared libraries. See `man strip' for details.
> > STRIP_SHARED="--strip-unneeded" #-- Options to be used when
> > stripping static libraries. See `man strip' for details.
> > STRIP_STATIC="--strip-debug" ```
> > 
> > Is there any reasons why static libraries have "--strip-debug"
> > instead of "--strip-unneeded"? I have noticed that because compiler
> > package I maintain in [community] has produced bloated executables
> > because of static linking with only partially stripped standard
> > library. Are there any dangerous consequences from switching to
> > "--string-unneeded"?
> 
> Actually I got the answer from outside already, nevermind :)

It would be nice to share the answer here, just to archive this with an answer

-- 
Ike


More information about the arch-dev-public mailing list