mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Андрей Аладьев" <aladjev.andrew@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] Re: Absolute symlink breaks cross compilation
Date: Wed, 22 Jan 2020 13:33:52 +0300	[thread overview]
Message-ID: <CAMw0szJ8aByvsDLxNdNu=XtVpoiCDX15ZY+zVmmr6rZTDoDDqA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

Hello Khem Raj and Rich Felker.

> I don't understand what you mean by it "breaks cross compilation". The

> ldso link produced is not used for compiling anything; it's only used
> for executing programs, which you don't do when cross compiling musl
> or cross compiling applications against it. The link is setup to be
> installed on the $host, not to be used on the $build where it's not
> needed.

> Could you could explain what specifically you're trying to do that's
> not working as desired?

I am doing musl cross compilation using "x86_64-pc-linux-musl-emerge
-v1 sys-libs/musl". It cross compiles it and copies everything into
the folder "/usr/x86_64-pc-linux-musl".


For example "./usr/lib/libc.so" becomes
"/usr/x86_64-pc-linux-musl/usr/lib/libc.so".
"./lib/ld-musl-x86_64.so.1" becomes
"/usr/x86_64-pc-linux-musl/lib/ld-musl-x86_64.so.1". So this
installation breaks all absolute symlinks.


I think the easiest way to fix it will be to keep all symlinks in musl
relative. Now I have "ld-musl-x86_64.so.1 -> ../usr/lib/libc.so" and
it works perfect. Thank you.

[-- Attachment #2: Type: text/html, Size: 1667 bytes --]

                 reply	other threads:[~2020-01-22 10:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAMw0szJ8aByvsDLxNdNu=XtVpoiCDX15ZY+zVmmr6rZTDoDDqA@mail.gmail.com' \
    --to=aladjev.andrew@gmail.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).