From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14313 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeffrey Walton Newsgroups: gmane.linux.lib.musl.general Subject: Re: Detecting musl at compile and/or configure time Date: Sun, 30 Jun 2019 10:54:16 -0400 Message-ID: References: <26f5537f-a876-209c-a27c-cd2619f5c834@gmch.uk> <3767f116-4a52-e9ef-a2ee-df1c23719e34@gmch.uk> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="73572"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Chris Hall To: musl@lists.openwall.com Original-X-From: musl-return-14329-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 30 16:54:56 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 1hhbED-000IxK-UT for gllmg-musl@m.gmane.org; Sun, 30 Jun 2019 16:54:54 +0200 Original-Received: (qmail 13718 invoked by uid 550); 30 Jun 2019 14:54:51 -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 13699 invoked from network); 30 Jun 2019 14:54:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=jxIRcIms7+VR9nver/n/GJ7+ncT/fVKFPh5tD0calfg=; b=ccCm7Ru+pr8i9jGJGKoZ+CNOV5mPAshzFl98MzWiZd5BzDARxxm3ITbuieKikEMGUa 0SjIsqOaLkSL3BkYnHbAmo8Ca2KgAAz5zSV5Fw/W/bk2qRTnpro9nsxHcCmyCC3nlXdY yOLsrm5+yZEGByUOIgxmnmTRG3hQmrCCwsk5CbSFwuK0rqyWqIipA53Cis19haSjSGT8 s6YayjECKER8nP1iFCl9e5D3iZOp99fNHeqHrTuga1vaa7EvJKTSuKfwURWXh4BqpKSQ AB34gLQc5JxP7gNH1mx4u4lYwy7deBT4H+NnodHVnLuo8RSfOHLXRHMsH44rHezqIBMq OY0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=jxIRcIms7+VR9nver/n/GJ7+ncT/fVKFPh5tD0calfg=; b=MEV9g5gW2ZWAa+sAjqxswgU03vAlEBW9FaTPW4SGwxDylUHi20V1ITCyoqVnQlDffT e0OomQD0ZWE2jj1JN7no25og2s8bPAba/Jronbm7quj/yTX9XQPIRSVH3RR5THEMDUGo vfCcwHB4QheTUY8/gVA818z7WWfXRd7XjTSETj/iL5YohnjSeI1Mc7k+oc753+RdAnS0 eON3LB8ZygljdCu9fpMquMyuVbAj5WM7t5qLccR2XSz/RXWKqJTl/2leoNa8IFropmoD 0I/8jmZFLK3Ii4O6FOcGN2lSTg2oBwk2kzy1OzszPffdVlADSGWbMriatuwFOtLy8QTG sWcw== X-Gm-Message-State: APjAAAV2kZzyFqoJ2PIcMrRKALHU7ldjYDGrNL/9Ken693LwK9LScywZ sXk7Md2FPt1m76dvsnk+tcd5UCd/3K9j5Iiu4uuFBUx/ X-Google-Smtp-Source: APXvYqydaSFaCd9DJJi3BYjpG/GnYGtbp/2VwidZgTFOdDuEH4FDVeJroVw2ih3hYn5C7shSBRZACDdJNwYHkyhCj2A= X-Received: by 2002:a6b:6b0d:: with SMTP id g13mr21965749ioc.55.1561906479300; Sun, 30 Jun 2019 07:54:39 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:14313 Archived-At: On Sun, Jun 30, 2019 at 8:29 AM Samuel Holland wrote: > > On 6/30/19 7:03 AM, Chris Hall wrote: > > I have a little build system which tries to detect the "usual suspects" > > automatically, even without a full configure/cmake/etc. step. If the detection > > process fails, it generates a warning and the user must (at least) add a '-Dxxx' > > to suppress that. > > > > I confess I have only recently stumbled across musl. Perhaps systems which > > default to musl are so rare that I can, as a practical matter, ignore them ? > > The question then is whether to add a '-DqLIB_MUSL' gizmo to my build stuff -- > > so that "musl-gcc -DqLIB_MUSL" will do the trick. > > The fundamental problem with that is that you're not really checking for musl. > You're checking for "the supported version (and options) of POSIX", "the > supported version of the Linux UAPI", and "the set of extensions currently > supported by musl", which all change over time. And some of them depend on who's > distributing musl, as they may add their own customizations. Or perhaps crafting workarounds for a buggy versions of musl. For example, https://www.openwall.com/lists/musl/2019/06/26/10 . Jeff