public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: bloated by gcc
Date: Tue, 30 Sep 2014 09:04:52 +0200	[thread overview]
Message-ID: <3301629.ARpgpUkSiD@andromeda> (raw)
In-Reply-To: <CAKpSnpJw+E9yJPCbe9T1uAKp0Lf0SqkxnJv40k+7X8jZHpddCQ@mail.gmail.com>


On Monday, September 29, 2014 12:37:37 AM Jorge Almeida wrote:
> On Sun, Sep 28, 2014 at 10:56 PM, walt <w41ter@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	other threads:[~2014-09-30  7:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-28  8:44 [gentoo-user] bloated by gcc Jorge Almeida
2014-09-28 21:56 ` [gentoo-user] " walt
2014-09-28 23:37   ` Jorge Almeida
2014-09-30  7:04     ` J. Roeleveld [this message]
2014-09-30  7:35       ` Jorge Almeida
2014-09-29 11:18 ` [gentoo-user] " Walter Dnes
2014-09-29 11:45   ` Jorge Almeida
2014-09-29 15:15     ` Walter Dnes
2014-09-29 15:32       ` Jorge Almeida
2014-09-29 17:51         ` Walter Dnes
2014-09-29 14:50 ` Marc Stürmer
2014-09-29 15:10   ` Jorge Almeida
2014-09-29 15:25     ` Kerin Millar
2014-09-29 16:02       ` Jorge Almeida
2014-09-29 16:20         ` Poison BL.
2014-09-29 17:33           ` Jorge Almeida
2014-09-29 17:16   ` Rich Freeman
2014-09-29 16:35 ` Daniel Troeder
2014-09-29 17:28   ` Jorge Almeida
2014-09-29 18:03   ` Stroller
2014-09-29 18:26     ` Jorge Almeida
2014-09-29 19:13       ` Jorge Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3301629.ARpgpUkSiD@andromeda \
    --to=joost@antarean.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox