From: "writeonce@midipix.org" <writeonce@midipix.org>
To: musl@lists.openwall.com
Subject: Re: for the wiki: a __MUSL__ alternative
Date: Fri, 02 May 2014 20:53:36 -0400 [thread overview]
Message-ID: <53643E10.5000309@midipix.org> (raw)
In-Reply-To: <5363770C.3080902@f-prot.com>
On 05/02/2014 06:44 AM, Oliver Schneider wrote:
> Hey Rich,
>
> On 2014-05-01 12:51, Rich Felker wrote:
>> The whole point of the wiki answer is that doing this is wrong. Adding
>> a "here's a way to do it anyway" rather defeats the purpose and is
>> just going to get us more trouble in the long term. In any case, this
>> only works when dynamic linking is available, and it requires the
>> ability to run programs for the target which breaks cross compiling
>> and therefore violates one of the biggest rules for built scripts.
> you're right and I admire how steadfast you are in your resolve.
>
> Initially I desired to have this myself so that I could give attribution
> within the program depending on whether it was built with musl-libc or
> another libc. Right now I have simple used a define on the command line
> to tell whether it's a build with musl-libc or not.
>
> Also, I don't think the proposed solution is very elegant. In this case
> it'd be better to pass parameters using the specs file, no?
>
> // Oliver
>
>
As far as elegance goes, you're right (I wasn't aiming at too much
elegance with that kind of a temporary solution). But if I understand
you correctly(*), two reasons not to use the .specs file are: 1) there
are native musl compilers that do not use the wrapper's .specs file; and
2) by turning __MUSL__ into a built-in macro of such native compilers,
and likewise by defining __MUSL__ in the .specs file, you'll be making
the macro available to everybody without requiring extra effort, which I
believe is what we'd like to avoid.
(*) I read 'specs' as a reference to musl-gcc.specs
-zg (regretfully for bringing this up in the first place...)
prev parent reply other threads:[~2014-05-03 0:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 7:41 writeonce
2014-05-01 12:51 ` Rich Felker
2014-05-01 13:07 ` writeonce
2014-05-02 10:44 ` Oliver Schneider
2014-05-02 15:10 ` Khem Raj
2014-05-03 0:53 ` writeonce [this message]
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=53643E10.5000309@midipix.org \
--to=writeonce@midipix.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).