From: Eial Czerwacki <eial@scalemp.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] uClibc: install libc.so even if BR2_PREFER_STATIC_LIB is enabled
Date: Thu, 01 Nov 2012 13:28:26 +0200 [thread overview]
Message-ID: <50925CDA.1060704@scalemp.com> (raw)
In-Reply-To: <1351764953-24251-1-git-send-email-arnout@mind.be>
On 11/01/2012 12:15 PM, Arnout Vandecappelle (Essensium/Mind) wrote:
> BR2_PREFER_STATIC_LIB _prefers_ static linking, but doesn't force it for
> all packages. So some binaries may still be built without -static, and
> they will need libc.so on the target.
>
> Therefore, put libc.so.0 in the target unconditionally.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Untested!
>
> toolchain/uClibc/uclibc.mk | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
> index 397cdd4..65ff90b 100644
> --- a/toolchain/uClibc/uclibc.mk
> +++ b/toolchain/uClibc/uclibc.mk
> @@ -486,9 +486,7 @@ $(TARGET_DIR)/usr/bin/ldd: $(cross_compiler)
> PREFIX=$(TARGET_DIR) utils install_utils
> touch -c $@
>
> -ifneq ($(BR2_PREFER_STATIC_LIB),y)
> UCLIBC_TARGETS=$(TARGET_DIR)/lib/libc.so.0
> -endif
>
> ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y)
> UCLIBC_TARGETS+=uclibc-test
I can confirm it works:
# find / -name "libc*"
/lib/libcrypt.so.0
/lib/libc.so.0
/lib/libcrypt-0.9.32.1.so
/usr/include/bits/libc-lock.h
/usr/lib/libc.a
/usr/lib/libcrypt_pic.a
/usr/lib/libc_pic.a
/usr/lib/libcurses.a
/usr/lib/libcrypt.a
next prev parent reply other threads:[~2012-11-01 11:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 15:11 [Buildroot] cannot compile a program within a uclibc build chroot Eial Czerwacki
2012-10-31 22:09 ` Arnout Vandecappelle
2012-11-01 6:01 ` Eial Czerwacki
2012-11-01 6:10 ` Baruch Siach
2012-11-01 6:18 ` Eial Czerwacki
2012-11-01 6:58 ` Baruch Siach
2012-11-01 7:05 ` Eial Czerwacki
2012-11-01 10:14 ` Arnout Vandecappelle
2012-11-01 10:15 ` [Buildroot] [PATCH] uClibc: install libc.so even if BR2_PREFER_STATIC_LIB is enabled Arnout Vandecappelle
2012-11-01 11:28 ` Eial Czerwacki [this message]
2012-11-02 22:17 ` Thomas Petazzoni
2012-11-03 23:28 ` Arnout Vandecappelle
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=50925CDA.1060704@scalemp.com \
--to=eial@scalemp.com \
--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