From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Problems with uClicbc and libc.so.6
Date: Fri, 10 Oct 2014 13:06:19 +0200 [thread overview]
Message-ID: <20141010130619.41d555b6@free-electrons.com> (raw)
In-Reply-To: <CA+TH9V=mCGn6WtS0RJHV9HHy6wrYBvxSW3aveQWdQWP-9UW0Bg@mail.gmail.com>
Dear Angelo Compagnucci,
On Fri, 10 Oct 2014 12:45:28 +0200, Angelo Compagnucci wrote:
> > <dllmap dll="libc" target="libc.so.0" os="!windows"/>
>
> This is pretty wonderfull! I totally missed that! I'll include it in a
> patch file! May it work also with glibc? If yes, I can tweak a static
> version of that file to include.
No, it won't work with glibc, and it most likely won't work with musl
as well. So you'll need to $(SED) this file in a post install target
hook, depending on the C library being used. Since the default value is
OK for glibc, we only need to handle the uClibc and Musl cases. Maybe
something like:
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
MONO_LIBC_NAME = libc.so.0
else ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
MONO_LIBC_NAME = libc.so
endif
ifneq ($(MONO_LIBC_NAME),)
define MONO_TWEAK_LIBC_NAME
$(SED) 's,libc.so.6,$(MONO_LIBC_NAME)' $(TARGET_DIR)/etc/mono/config
endef
MONO_POST_INSTALL_TARGET_HOOKS += MONO_TWEAK_LIBC_NAME
endif
> Yes, Thomas, you caught me, I did not understand your comment!
> Actually I really don't know haw to achieve such a dual package in
> one, but if you prompt me a minimal example, I'll work on understand
> it!
I'll have a look.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2014-10-10 11:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 10:35 [Buildroot] Problems with uClicbc and libc.so.6 Angelo Compagnucci
2014-10-09 11:54 ` Thomas Petazzoni
2014-10-09 12:58 ` Angelo Compagnucci
2014-10-09 13:07 ` Thomas Petazzoni
2014-10-09 15:58 ` Angelo Compagnucci
2014-10-09 16:02 ` Thomas Petazzoni
2014-10-09 16:40 ` Angelo Compagnucci
2014-10-09 20:20 ` Thomas Petazzoni
2014-10-10 7:46 ` Angelo Compagnucci
2014-10-10 10:34 ` Thomas Petazzoni
2014-10-10 10:45 ` Angelo Compagnucci
2014-10-10 11:06 ` Thomas Petazzoni [this message]
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=20141010130619.41d555b6@free-electrons.com \
--to=thomas.petazzoni@free-electrons.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