Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: buildroot@busybox.net
Subject: [Buildroot] prefer static libraries question
Date: Tue, 12 Apr 2011 02:48:25 -0400	[thread overview]
Message-ID: <201104120248.26575.vapier@gentoo.org> (raw)
In-Reply-To: <9AC3F0E75060224C8BBC5BA2DDC8853A1F99AC7E@EXV1.corp.adtran.com>

On Monday, March 28, 2011 17:49:56 ANDY KENNEDY wrote:
> Understanding that "prefer static libraries" is "highly experimental at
> the moment", should this export some default LDFLAGS=-static?  I
> attempted this with a very minimal set of tools (kexec, ssh, and
> busybox) and I found that busybox _does_ build statically, however, ssh
> and kexec don't.  Furthermore, openssl gets installed to the target
> (which is expected since ssh is built dynamically).  Preferring static
> libs would indicate (to me) that the _whole_ system will not have any
> libraries and each util would be linked statically.
> 
> Based upon the "at the moment" clause in the help:  is this an effort
> that is currently underway?  If yes, who is doing it and would you like
> help?  If no, since I have to do it anyway, should I start with the
> tools that I'm using and should I key off of the BR2_PREFER_STATIC_LIB
> for kexec, ssh, and anything else I run across to set *_CONF_ENV =
> LDFLAGS="-static" in the *.mk files?

the config option is "prefer" not "use only".  so the behavior tends to lean 
towards static, but not always use it.  thus things like -static are not 
enforced, and shared libs still get installed.

then again, it seems that sometimes people interpret this to mean "only do 
static", so there might be some inconsistencies in the tree.  but this is just 
a vague recollection ... i dont have any examples off the top of my head.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110412/bdc34926/attachment.asc>

  reply	other threads:[~2011-04-12  6:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 21:49 [Buildroot] prefer static libraries question ANDY KENNEDY
2011-04-12  6:48 ` Mike Frysinger [this message]
2011-04-12 15:20   ` ANDY KENNEDY
2011-04-12 22:36     ` Mike Frysinger
2011-04-22 13:25       ` Thomas Petazzoni
2011-05-14  9:38         ` Peter Korsgaard
2011-06-18 18:47         ` Mike Frysinger
2011-06-18 19:38           ` Bernhard Reutner-Fischer
2011-06-20 14:53             ` ANDY KENNEDY

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=201104120248.26575.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=buildroot@busybox.net \
    /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