mailing list of musl libc
 help / color / mirror / code / Atom feed
From: John Spencer <maillist-musl@barfooze.de>
To: musl@lists.openwall.com
Subject: Re: Building libc separately from libm,librt,libpthread and others
Date: Sun, 07 Apr 2013 16:52:08 +0200	[thread overview]
Message-ID: <51618818.9080002@barfooze.de> (raw)
In-Reply-To: <CAE+eE2KPijbLym0Hv3RH2ub+ALzTL=m4vR+PS8Amo6SjYCRTPA@mail.gmail.com>

On 04/07/2013 04:43 PM, Timerlan Moldobaev wrote:
> Hi,
>
> Can you please help with reducing the size of statically linked libc.a
> library ?
> Whereas the comparison table located in
> http://www.etalabs.net/compare_libcs.html
> claims the size of complete .a set as 333k, I got around 2M while building
> the library on x86_64 with gcc version 4.1.1.

the comparison page also notes that it is using size(1) and not filesize.

> I suppose that might be caused by including in libc.a  object files that
> belong to libm, librt, libpthread and others.
> Am I right ?
> Is there any way to compile libc.a solely ?

the only thing that can theoretically be left away is libm, but this 
would need some effort.
things like pthread support are fundamental to musl's inner workings, so 
they can not be left away.




  reply	other threads:[~2013-04-07 14:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 14:43 Timerlan Moldobaev
2013-04-07 14:52 ` John Spencer [this message]
2013-04-07 15:43   ` Szabolcs Nagy
2013-04-07 16:04     ` John Spencer
2013-04-08  7:43   ` Timerlan Moldobaev
2013-04-08 15:43     ` Rich Felker
2013-04-07 16:21 ` Szabolcs Nagy
2013-04-08  3:32 ` Rich Felker
2013-04-08  8:31   ` Timerlan Moldobaev
2013-04-08 12:48     ` Boris Alesker
2013-04-08  3:47 ` nwmcsween
2013-04-08 12:54 Boris Alesker

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=51618818.9080002@barfooze.de \
    --to=maillist-musl@barfooze.de \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).