On Monday, September 29, 2014 12:37:37 AM Jorge Almeida wrote:
> On Sun, Sep 28, 2014 at 10:56 PM, walt <w41...@gmail.com> wrote:
> > On 09/28/2014 01:44 AM, Jorge Almeida wrote:
> >> I'm having a somewhat disgusting issue on my Gentoo: binaries are
> >> unaccountably large.
> > 
> > Are you cross-compiling for different hardware?  I'm just curious what
> > results you get with --march=native.
> 
> Nope. Actually, I compiled with --march=native, with no difference
> (probably because my code is not fancy enough to make use of whatever
> stuff that pulls), but then tried i686 just to enable comparing with
> non-Gentoo systems.
> The purpose is to have small static binaries compiled against dietlibc
> to be used in the same computer (compile once and forget about future
> software incompatibilities!). I compiled against glibc to make sure
> the problem is not with dietlibc.

Did you compile the used libraries using the exact same options on both 
systems as well?
When compiling a static binary, the libraries are included into the resulting 
binary.
If the libraries on Gentoo are bigger, the resulting static binary will also 
be bigger.

--
Joost

Reply via email to