Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Kuzmich <ilya.kuzmich@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] toolchain-external: dynamic loader symlink to actual location of musl libc.so
Date: Thu, 25 May 2017 15:09:19 +0300	[thread overview]
Message-ID: <20170525120919.GD14358@uxa> (raw)
In-Reply-To: <1495112596-26182-1-git-send-email-ilya.kuzmich@gmail.com>

ping?
On 18/05, Ilya Kuzmich wrote:
> Test whenever musl libc.so located at /lib or /usr/lib and create dynamic
> library loader symlink accordingly.
> 
> Signed-off-by: Ilya Kuzmich <ilya.kuzmich@gmail.com>
> ---
>  toolchain/toolchain-external/pkg-toolchain-external.mk | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk
> index 9670350..438d714 100644
> --- a/toolchain/toolchain-external/pkg-toolchain-external.mk
> +++ b/toolchain/toolchain-external/pkg-toolchain-external.mk
> @@ -489,7 +489,12 @@ else
>  MUSL_ARCH = $(ARCH)
>  endif
>  define TOOLCHAIN_EXTERNAL_MUSL_LD_LINK
> -	ln -sf libc.so $(TARGET_DIR)/lib/ld-musl-$(MUSL_ARCH).so.1
> +	if test -e $(STAGING_DIR)/usr/lib/libc.so; then \
> +		LD_LINK_TARGET=../usr/lib/libc.so ;\
> +	else \
> +	    LD_LINK_TARGET=libc.so ;\
> +	fi ;\
> +	ln -sf "$${LD_LINK_TARGET}" $(TARGET_DIR)/lib/ld-musl-$(MUSL_ARCH).so.1 ;
>  endef
>  endif
>  
> -- 
> 2.7.4
> 

  reply	other threads:[~2017-05-25 12:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 13:03 [Buildroot] [PATCH 1/1] toolchain-external: dynamic loader symlink to actual location of musl libc.so Ilya Kuzmich
2017-05-25 12:09 ` Ilya Kuzmich [this message]
2017-07-02 13:46 ` Thomas Petazzoni

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=20170525120919.GD14358@uxa \
    --to=ilya.kuzmich@gmail.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