From: John Spencer <maillist-musl@barfooze.de>
To: musl@lists.openwall.com
Subject: Re: Bug in include/netinet/in.h
Date: Thu, 24 Jan 2013 21:46:19 +0100 [thread overview]
Message-ID: <51019D9B.2040300@barfooze.de> (raw)
In-Reply-To: <510189DB.6070106@univie.ac.at>
On 01/24/2013 08:22 PM, Alexander Stadler wrote:
>
> I removed -Werror from CMakeLists.txt of netifd, after that it compiled (with warnings ;-) ).
> Thank you!
>
> (only size shocked me - 450KB (one day before with uClibc 50KB :-/ ))
>
probably something went wrong here, usually musl-linked binaries are a
good bit smaller than their uclibc-linked counterparts.
some guesses:
- uclibc binary is linked dynamically, but the musl one statically
- debug mode (-g) was used for the musl binary
- uclibc binary was stripped (-s) but musl one wasn't
i'd try to use strip tool on both binaries and compare
additionally comparing the used CFLAGS used by the compiler might give
hints (compile both in verbose mode and compare build logs)
for smallest binary size, usually -flto -fwhole-program -s -Os give the
best results with gcc >= 4.5.0 (however lto makes the build notably slower)
next prev parent reply other threads:[~2013-01-24 20:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 16:39 Alexander Stadler
2013-01-23 16:58 ` John Spencer
2013-01-23 17:08 ` Alexander Stadler
2013-01-23 17:11 ` Rich Felker
2013-01-24 19:22 ` Alexander Stadler
2013-01-24 20:38 ` Rich Felker
2013-01-24 20:46 ` John Spencer [this message]
2013-01-29 17:37 ` Alexander Stadler
2013-01-29 18:10 ` Szabolcs Nagy
2013-01-29 18:33 ` Alexander Stadler
2013-01-29 20:36 ` Florian Fainelli
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=51019D9B.2040300@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).