Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 01 May 2014 03:41:19 -0400
From: "writeonce@...ipix.org" <writeonce@...ipix.org>
To: musl@...ts.openwall.com
Subject: for the wiki: a __MUSL__ alternative

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.