mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Lucas Simões" <simoes.lucas.silva@gmail.com>
To: Justin Cormack <justin@specialbusservice.com>, musl@lists.openwall.com
Cc: Paulo Castro <p.oliveira.castro@gmail.com>
Subject: Re: Using Musl with LLVM/Clang
Date: Wed, 27 May 2015 00:23:26 +0000	[thread overview]
Message-ID: <CADP2nB+cwS3kAOTpkPpO1LvyeDYe5Om8YOWwKS-iHp01Ebef=g@mail.gmail.com> (raw)
In-Reply-To: <CAK4o1Ww-BRdU1Es6ZkVf4Ra7bAMkpLcna9jMfMwj122MTEHpZQ@mail.gmail.com>

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

Thank you for the quick response guys!
That's really sad, I was truly hoping to find a way to use musl out of the
box with Clang (on my Arch)
Guess I'll just have to check the toolchains on this ELLCC project

Em ter, 26 de mai de 2015 às 04:48, Justin Cormack <
justin@specialbusservice.com> escreveu:

> On 26 May 2015 at 02:53, Shiz <hi@shiz.me> wrote:
> >> On 26 May 2015, at 03:37, Rich Felker <dalias@libc.org> wrote:
> >>
> >> The main reason we need a specfile for gcc rather than just -nostdinc
> >> and -nostdlib is that the latter does not suppress search of the
> >> default library paths, just the libraries, i.e. it removes the -l's
> >> but not the -L's. If you can find a way to remove the default -L's for
> >> clang then it should be easy.
> >>
> >> Rich
> >
> > Sadly, after looking at the clang driver source[1], there seems to be no
> > such option: it unconditionally adds the library paths. Unless there’s
> > some way to influence ToolChain.getFilePaths(), it doesn’t seem like it
> > can be done without modifying the clang source code.
>
> You can use clang with --sysroot, if everything is under the same root
> path.
>
> In theory if clang had support you could just use -target or just
> rename the compiler and it would just compile for Musl, according to
> the docs http://clang.llvm.org/docs/CrossCompilation.html but I am
> guessing that needs some upstream support, would be nice to add.
>
> Justin
>

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

  reply	other threads:[~2015-05-27  0:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 20:32 Lucas Simões
2015-05-26  1:33 ` Shiz
2015-05-26  1:37   ` Rich Felker
2015-05-26  1:53     ` Shiz
2015-05-26  7:48       ` Justin Cormack
2015-05-27  0:23         ` Lucas Simões [this message]
2015-05-27  1:20           ` Richard Pennington
2015-05-27  1:38           ` Shiz

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='CADP2nB+cwS3kAOTpkPpO1LvyeDYe5Om8YOWwKS-iHp01Ebef=g@mail.gmail.com' \
    --to=simoes.lucas.silva@gmail.com \
    --cc=justin@specialbusservice.com \
    --cc=musl@lists.openwall.com \
    --cc=p.oliveira.castro@gmail.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).