mailing list of musl libc
 help / color / mirror / code / Atom feed
* for the wiki: a __MUSL__ alternative
@ 2014-05-01  7:41 writeonce
  2014-05-01 12:51 ` Rich Felker
  0 siblings, 1 reply; 6+ messages in thread
From: writeonce @ 2014-05-01  7:41 UTC (permalink / raw)
  To: musl

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-03  0:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-01  7:41 for the wiki: a __MUSL__ alternative 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

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).