From: "Matias A. Fonzo" <selk@dragora.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH v3 3/3] add musl-clang, a wrapper for system clang installs
Date: Tue, 7 Jul 2015 16:30:10 -0300 [thread overview]
Message-ID: <20150707163010.14631757@dragora.org> (raw)
In-Reply-To: <1435525701-64741-3-git-send-email-hi@shiz.me>
El Sun, 28 Jun 2015 23:08:21 +0200
Shiz <hi@shiz.me> escribió:
> musl-clang allows the user to compile musl-powered programs using
> their already existent clang install, without the need of a special
> cross compiler. it achieves this by wrapping around both the system
> clang install and the linker and passing them special flags to
> re-target musl at runtime. it does only affect invocations done
> through the special musl-clang wrapper script, so that the user setup
> remains fully intact otherwise.
>
> the clang wrapper consists of the compiler frontend wrapper script,
> musl-clang, and the linker wrapper script, ld.musl-clang.
> musl-clang makes sure clang invokes ld.musl-clang to link objects;
> neither script needs to be in PATH for the wrapper to work.
> [..]
> +thisdir="`cd "$(dirname "$0")"; pwd`"
> [..]
A better version of "thisdir=" to prevent directories containing spaces
and weird characters is:
thisdir="`cd "$(dirname -- "$0" 2> /dev/null)" ; printf %s "$PWD"`"
next prev parent reply other threads:[~2015-07-07 19:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-28 21:08 [PATCH v3 1/3] build: overhaul wrapper script system for multiple wrapper support Shiz
2015-06-28 21:08 ` [PATCH v3 2/3] build: fix musl-targeting toolchain test Shiz
2015-06-29 14:35 ` Isaac Dunham
2015-06-29 17:30 ` Rich Felker
2015-06-28 21:08 ` [PATCH v3 3/3] add musl-clang, a wrapper for system clang installs Shiz
2015-07-07 19:30 ` Matias A. Fonzo [this message]
2015-07-07 0:12 ` [PATCH v3 1/3] build: overhaul wrapper script system for multiple wrapper support Rich Felker
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=20150707163010.14631757@dragora.org \
--to=selk@dragora.org \
--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).