From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14312 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeffrey Walton Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: Detecting musl at compile and/or configure time Date: Sun, 30 Jun 2019 10:51:28 -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="60869"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14328-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 30 16:52:08 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 1hhbBY-000Fjg-6U for gllmg-musl@m.gmane.org; Sun, 30 Jun 2019 16:52:08 +0200 Original-Received: (qmail 9305 invoked by uid 550); 30 Jun 2019 14:52:05 -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 9281 invoked from network); 30 Jun 2019 14:52:04 -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; bh=0sYRqWB11nJ8U4tYLN6IFFLNV9cttnZheHSNQdNsveE=; b=SQ9nvophmcMlAEyKgitdlwKnXg6iLIisINVx+qu7dswUyrB4i9ASWKyI4pjuOgp7hG QVkWcXta2TfU9y3nIga12k4b1Geeb2/c82yuwSSKnZvxNQBZXuKZI0q80/lTYG2C3OT1 uVxmVD43u0tvmk07FxDpsq/Pg6RXoq+AufpWlPhVLLrVf7xSt8EWeqqc86aWqjNm2o7F MMJFrW5/aDPKtheLpABVXgV2k2yp9kqhhCCOjOJ1OrjOz1SDn7q4jrH+Gka0y+Z7YI6r eQlC5wQ0ixbHG3DkuQU3Gp8ixVG1q0ZhfWo/HAUyerdQPDvpFPgc6dXT9H4QaEh0vT9M w8sA== 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; bh=0sYRqWB11nJ8U4tYLN6IFFLNV9cttnZheHSNQdNsveE=; b=m6qnTd5q/XQwdgbN/Su+yigihI6FR027JEfIYuOmRZn6blcpq0f+VEHcoG7+mSQLF5 0KHhzQHq/73fjDN5EKD0FyTyGbcoI1hRyFK1xX2oZAhN6CUzNHEBlYXdLZNE+ulCLmd2 KHZzMfqQxiyOwifWaBu0VL7mYV6GGpC/CzYqlraGkWHpW2mhvhltD/uw6TY3A8APPAgb 9j3I0vn6o5mtLNnSVpwanLqds/vooj3TT//laZWQ7CaXkWc8EKQa+YzgjJLJenvnLMq4 b1yUnHLItRMW6RGGHKJ3TvS1a1QRb+Wf1bNYJB3MhrhzeKYbQ/2jFuVph2lo5imV09e8 8/XA== X-Gm-Message-State: APjAAAXmygopCzPFRCcei2BcwbqUNLW67LVjck1PowJE7Ai8JO76jgD7 /tuKbbTxAnt7FXYhp3H4dmzZ57+Eqk3Upt+XtKWQ4hSE X-Google-Smtp-Source: APXvYqyyGdrxuRmRJMcb67UHABt40qUitEbWMrDtXOxa9W996MJcAwiCVPUs+3Aiws+AD0gAjGkA6Y5H5FfNQSFBj/o= X-Received: by 2002:a5d:9b1a:: with SMTP id y26mr10213921ion.238.1561906312651; Sun, 30 Jun 2019 07:51:52 -0700 (PDT) In-Reply-To: <3767f116-4a52-e9ef-a2ee-df1c23719e34@gmch.uk> Xref: news.gmane.org gmane.linux.lib.musl.general:14312 Archived-At: On Sun, Jun 30, 2019 at 8:03 AM Chris Hall wrote: > ... > > > Is there a reason you wish to detect musl at configure/compile time? > > Perhaps if we knew the reason, we could help you make your code more > > portable and/or not require such detection. > > 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. Alpine Linux might make a good test platform for you because it uses musl out of the box. https://alpinelinux.org/downloads/. Jeff