From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5014 Path: news.gmane.org!not-for-mail From: "writeonce@midipix.org" Newsgroups: gmane.linux.lib.musl.general Subject: for the wiki: a __MUSL__ alternative Date: Thu, 01 May 2014 03:41:19 -0400 Message-ID: <5361FA9F.2090207@midipix.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1398930103 21247 80.91.229.3 (1 May 2014 07:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 07:41:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5018-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 01 09:41:38 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Wflcf-0002Lr-1D for gllmg-musl@plane.gmane.org; Thu, 01 May 2014 09:41:37 +0200 Original-Received: (qmail 12208 invoked by uid 550); 1 May 2014 07:41:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 12187 invoked from network); 1 May 2014 07:41:34 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Xref: news.gmane.org gmane.linux.lib.musl.general:5014 Archived-At: 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