From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 4/5] [x86_64, libc] on multilib do not put all dynamic linkers in /lib
Date: Tue, 13 Mar 2012 11:07:47 +0100 [thread overview]
Message-ID: <20120313100747.GJ29221@pengutronix.de> (raw)
In-Reply-To: <1331587504-16721-4-git-send-email-linux@bohmer.net>
On Mon, Mar 12, 2012 at 10:25:03PM +0100, Remy Bohmer wrote:
> It is assumed by the makefiles that all dynamic linkers must be put in
> /lib. This is however not true. Especially on multilib configurations this
> information cannot be guessed. By looking in the sysroot of the compiler
> toolchain the right paths can be found. Default the scripts already look
> there, so remove the unneeded options.
No obvious issues but I need to do some more testing, to make sure it
doesn't break any other toolchains.
Michael
> Signed-off-by: Remy Bohmer <linux@bohmer.net>
> ---
> rules/glibc.make | 2 +-
> rules/post/install.make | 9 +++------
> rules/uclibc.make | 2 +-
> 3 files changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/rules/glibc.make b/rules/glibc.make
> index c4e6724..3ddf249 100644
> --- a/rules/glibc.make
> +++ b/rules/glibc.make
> @@ -36,7 +36,7 @@ $(STATEDIR)/glibc.targetinstall:
> @$(call install_fixup, glibc,DESCRIPTION,missing)
>
> ifdef PTXCONF_GLIBC_LD
> - @$(call install_copy_toolchain_dl, glibc, /lib)
> + @$(call install_copy_toolchain_dl, glibc)
> endif
>
> ifdef PTXCONF_GLIBC_C
> diff --git a/rules/post/install.make b/rules/post/install.make
> index 4ad7f87..190ec28 100644
> --- a/rules/post/install.make
> +++ b/rules/post/install.make
> @@ -317,17 +317,14 @@ install_copy_toolchain_lib = \
> # install_copy_toolchain_dl
> #
> # $1: xpkg label
> -# $2: destination
> -# $3: strip (y|n) default is to strip
> +# $2: strip (y|n) default is to strip
> #
> install_copy_toolchain_dl = \
> XPKG=$(subst _,-,$(strip $(1))); \
> - DST="$(strip $2)"; \
> - STRIP="$(strip $3)"; \
> - test "$${DST}" != "" && DST="-d $${DST}"; \
> + STRIP="$(strip $2)"; \
> $(call install_check, install_copy_toolchain_dl); \
> ${CROSS_ENV_CC} $(CROSS_ENV_STRIP) PKGDIR="$(PKGDIR)" \
> - $(SCRIPTSDIR)/install_copy_toolchain.sh -p "$${XPKG}" -l LINKER $${DST} -s "$${STRIP}"
> + $(SCRIPTSDIR)/install_copy_toolchain.sh -p "$${XPKG}" -l LINKER -s "$${STRIP}"
>
> #
> # install_copy_toolchain_other
> diff --git a/rules/uclibc.make b/rules/uclibc.make
> index 22583fd..c6cc86f 100644
> --- a/rules/uclibc.make
> +++ b/rules/uclibc.make
> @@ -30,7 +30,7 @@ $(STATEDIR)/uclibc.targetinstall:
> @$(call install_fixup, uclibc,DESCRIPTION,missing)
>
> ifdef PTXCONF_UCLIBC
> - @$(call install_copy_toolchain_dl, uclibc, /lib)
> + @$(call install_copy_toolchain_dl, uclibc)
> endif
>
> ifdef PTXCONF_UCLIBC_C
> --
> 1.7.5.4
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2012-03-13 10:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-12 21:25 [ptxdist] [PATCH 1/5] [rt-tests] Use CFLAGS specified by ptxdist platformconfig Remy Bohmer
2012-03-12 21:25 ` [ptxdist] [PATCH 2/5] [x86_64] Add some support for multilib detection in the toolchain Remy Bohmer
2012-03-13 9:56 ` Michael Olbrich
2012-03-13 10:23 ` Remy Bohmer
2012-03-12 21:25 ` [ptxdist] [PATCH 3/5] [busybox] Pass extra platform CFLAGS to busybox make Remy Bohmer
2012-03-13 9:59 ` Michael Olbrich
2012-03-13 10:26 ` Remy Bohmer
2012-03-13 12:46 ` Remy Bohmer
2012-03-13 13:06 ` Michael Olbrich
2012-03-13 21:31 ` Remy Bohmer
2012-03-12 21:25 ` [ptxdist] [PATCH 4/5] [x86_64, libc] on multilib do not put all dynamic linkers in /lib Remy Bohmer
2012-03-13 10:07 ` Michael Olbrich [this message]
2012-03-13 10:28 ` Remy Bohmer
2012-03-13 10:34 ` Remy Bohmer
2012-03-13 10:58 ` Michael Olbrich
2012-03-12 21:25 ` [ptxdist] [PATCH 5/5] [x86_64, libc] Link /usr/lib/libdl.so is not needed and wrong on x86_64 Remy Bohmer
2012-03-13 9:53 ` [ptxdist] [PATCH 1/5] [rt-tests] Use CFLAGS specified by ptxdist platformconfig Michael Olbrich
2012-03-13 10:21 ` Remy Bohmer
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=20120313100747.GJ29221@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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