bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFLAGS is for the user in GNU


From: Ralf Corsepius
Subject: Re: CFLAGS is for the user in GNU
Date: Mon, 02 Feb 2009 05:27:42 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Karl Berry wrote:
The description of CFLAGS in the Autoconf manual omits the most
important point about it.  To quote the coding standards
(make-stds.texi):

    If there are C compiler options that @emph{must} be used for proper
    compilation of certain files, do not include them in @code{CFLAGS}.
    Users expect to be able to specify @code{CFLAGS} freely themselves.

I would write a patch for it, but I'm not sure if there is a variable to
suggest for such required options for the C compiler proper these days.
Maybe it never comes up in practice?
Ohh, the problem does come up in practice.

However, I think you trying to solve a non-issue, because such "hard-coded flags" are package-specific internal configuration details, a package's configuration implementor will treat just like any other package-specific configuration detail.

I.e., he will typically add some *_*FLAGS macros/AS_SUBST's and use them inside of his hand-crafted Makefile.in's.

Ralf







reply via email to

[Prev in Thread] Current Thread [Next in Thread]