This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Document use of CC and CFLAGS in more detail (bug 20980, bug 21234)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 7 Feb 2018 01:34:31 +0000
- Subject: Re: Document use of CC and CFLAGS in more detail (bug 20980, bug 21234)
- Authentication-results: sourceware.org; auth=none
- References: <xn7erpiodl.fsf@greed.delorie.com>
On Tue, 6 Feb 2018, DJ Delorie wrote:
>
> Joseph Myers <joseph@codesourcery.com> writes:
> > + It may also be useful to pass 'CC=COMPILER' and 'CFLAGS=FLAGS'
> > +arguments to 'configure'. 'CC' selects the C compiler that will be
>
> The first example of how to do this is 270 lines later...
>
> I suspect people familiar with GNU configure might assume you meant
>
> $ CC=... configure
The recommended approach has been "configure CC=..." not "CC=...
configure" ever since autoconf 2.50 (released 2001).
Passing in the environment does tend to work (modulo possible errors if
the value is different when config.status gets run) and I don't think it's
necessary for the glibc-specific instructions to emphasise the existence
of this deprecation, but I don't think the instructions should use the
deprecated form either - they should use the preferred modern form.
--
Joseph S. Myers
joseph@codesourcery.com