From: "writeonce@midipix.org" <writeonce@midipix.org>
To: musl@lists.openwall.com
Subject: for the wiki: a __MUSL__ alternative
Date: Thu, 01 May 2014 03:41:19 -0400 [thread overview]
Message-ID: <5361FA9F.2090207@midipix.org> (raw)
Greetings,
Since requests for a __MUSL__ macro still come in every now and then, I
thought it might be useful to add to the wiki the following text at the
end of the section "why is there no __MUSL__ macro?"
If you have a situation that (temporarily) requires that you can
identify the libc being used, consider the following trick: as part of
your configuration script, locate libc.so, then create a symlink from
libc.so to /some/temporary/folder/ldd, and finally execute
/some/temporary/folder/ldd 2>&1 | grep 'musl libc'; Based on the
outcome, you could then add -D__MUSL__ to the relevant environment variable.
I hope that helps,
zg
next reply other threads:[~2014-05-01 7:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 7:41 writeonce [this message]
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
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=5361FA9F.2090207@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).