From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8731 Path: news.gmane.org!not-for-mail From: Denys Vlasenko Newsgroups: gmane.linux.lib.musl.general Subject: Re: Having hard time adding to CFLAGS Date: Fri, 23 Oct 2015 08:47:18 +0200 Message-ID: References: <20151022232330.GG10551@port70.net> <20151023030236.GB8645@brightrain.aerifal.cx> <20151023040909.GD8645@brightrain.aerifal.cx> <20151023051604.GF8645@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1445582885 26158 80.91.229.3 (23 Oct 2015 06:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 06:48:05 +0000 (UTC) To: musl Original-X-From: musl-return-8744-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 23 08:47:57 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZpW8m-0005Cc-DF for gllmg-musl@m.gmane.org; Fri, 23 Oct 2015 08:47:52 +0200 Original-Received: (qmail 11581 invoked by uid 550); 23 Oct 2015 06:47:50 -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 11562 invoked from network); 23 Oct 2015 06:47:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=rsgwuw1n714gMxS498Yi8adHZLtNqOufjgslIzaEmLE=; b=yAFn6WYxqqa6P8dd7p28EpY5TH3yPyxxNDf/4k0BcE5jR3FNWTplTvAmFvrSZ07Gr3 zouR7w5uS86c3TNdHsMid8o+lCjpfySEx3xiMK+IuCb/sOQFf7vmuOrUxhJimIQiOPJN GH5HMQ3jcCbvaw3rqsdukzwXojkZkz7YTUtiMy/tnZXzuHAbwdyQs5Jq/OAeyJrIuES3 tP3XHzSHNu4DbSkLuLDzOBVWgro/PIEtBu1YR2BS0lSEt+95R8CnVb6Crcq/ROY2xLs5 w7Gri0cHqYh1Lkn9U3x46UnQS8LbY3fQq1IiAe3HpvYYU/oRfNC0Edd6WAeYms4NG5LB gMeA== X-Received: by 10.140.233.130 with SMTP id e124mr24822542qhc.79.1445582857712; Thu, 22 Oct 2015 23:47:37 -0700 (PDT) In-Reply-To: <20151023051604.GF8645@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:8731 Archived-At: On Fri, Oct 23, 2015 at 7:16 AM, Rich Felker wrote: >> Currently, it is confusing. See for yourself: >> >> >> Usage: $0 [OPTION]... [VAR=VALUE]... [TARGET] >> >> To assign environment variables (e.g., CC, CFLAGS...), specify them as >> VAR=VALUE. See below for descriptions of some of the useful variables. >> .... >> ("ok, I got it. CFLAGS should go to configure's command line!") >> .... >> Some influential environment variables: >> CC C compiler command [detected] >> CFLAGS C compiler flags [-Os -pipe ...] >> CROSS_COMPILE prefix for cross compiler and tools [none] >> LIBCC compiler runtime library [detected] >> >> Use these variables to override the choices made by configure. >> >> ("What? You just said that CFLAGS should be on command line! >> Now you are saying it should be in the environment! >> What it is?") > > The behavior is the same as autoconf: they're accepted either as > environment variables or on the configure command line. Some users do: > > CFLAGS=... ./configure ... > > and others do: > > ./configure CFLAGS=... ... I tested both and they indeed work identically. > I can add some language to the help text to make it explicit that > either is accepted. I'm sending you a patch with amended --help text.