Re: Wrong order of preprocessor and compiler flags

2022-03-28 Thread Evgeny Grin
Hello Alex, On 28.03.2022 4:55, Alex Ameen wrote: This is a message I meant send to "all", I'm sending again for the wider discussion. Please let me know if my understanding of include order is incorrect. Essentially I'm more concerned about relative placement of `AM_CPPFLAGS' and `CPPFLAGS'

Re: Wrong order of preprocessor and compiler flags

2022-03-28 Thread Evgeny Grin
Hello Karl, On 28.03.2022 0:22, Karl Berry wrote: It seems the basic inconsistency is whether CPPFLAGS is considered a "user variable" or not. In earlier eras, it wasn't, but from your msg, I gather it is now. The GNU standards node about it, that you mentioned, https://www.gnu.org/prep/sta

Re: Wrong order of preprocessor and compiler flags

2022-03-27 Thread Alex Ameen
This is a message I meant send to "all", I'm sending again for the wider discussion. Please let me know if my understanding of include order is incorrect. Essentially I'm more concerned about relative placement of `AM_CPPFLAGS' and `CPPFLAGS' in any future changes. Moving CPPFLAGS to the end of t

Re: Wrong order of preprocessor and compiler flags

2022-03-27 Thread Bob Friesenhahn
On Mon, 28 Mar 2022, Jan Engelhardt wrote: I went to the GNU make git repo to check on CPPFLAGS; it appeared first in documentation rather than source (which seems like a history import mishap), but even back then in '94, the documentation was inconsistent, sometimes providing example descriptio

Re: Wrong order of preprocessor and compiler flags

2022-03-27 Thread Jan Engelhardt
On Sunday 2022-03-27 23:22, Karl Berry wrote: >It seems the basic inconsistency is whether CPPFLAGS is considered a >"user variable" or not. In earlier eras, it wasn't [...] In earlier eras of what exactly? As for make, it never made a distinction between user variables or otherwise, at least

Re: Wrong order of preprocessor and compiler flags

2022-03-27 Thread Karl Berry
It seems the basic inconsistency is whether CPPFLAGS is considered a "user variable" or not. In earlier eras, it wasn't, but from your msg, I gather it is now. The GNU standards node about it, that you mentioned, https://www.gnu.org/prep/standards/standards.html#Command-Variables does not clearl

Wrong order of preprocessor and compiler flags

2022-03-27 Thread Evgeny Grin
Hello, This discussion was started initially in the autoconf list. [1] Automake and autoconf use compiler and preprocessor flags in different order. Within 'configure' scripts, compile checks/tests are performed as [2]: $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD but resulting