From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14287 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Chris Hall Newsgroups: gmane.linux.lib.musl.general Subject: Detecting musl at compile and/or configure time Date: Sat, 29 Jun 2019 12:48:07 +0100 Message-ID: <8c2d963e-1fcf-df2e-2a52-614f0250b594@gmch.uk> References: <1561802993.8028.ezmlm@lists.openwall.com> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="214842"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 To: musl@lists.openwall.com Original-X-From: musl-return-14303-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 29 13:48:22 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hhBq9-000tmC-Vk for gllmg-musl@m.gmane.org; Sat, 29 Jun 2019 13:48:22 +0200 Original-Received: (qmail 14275 invoked by uid 550); 29 Jun 2019 11:48:18 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 14237 invoked from network); 29 Jun 2019 11:48:17 -0000 In-Reply-To: <1561802993.8028.ezmlm@lists.openwall.com> Content-Language: en-GB Xref: news.gmane.org gmane.linux.lib.musl.general:14287 Archived-At: Is there a supported way of detecting that one is building against the musl libc ? At compile time I can, of course, detect glibc because it sets __GLIBC__ etc. For macOS I can see _DARWIN_FEATURE_xxx macros. The BSDs mostly give themselves away. But for musl I have not found anything :-( Chris