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

Re: Implicitly specify compiler flags based on library dependencies

2011-04-20 Thread Ralf Wildenhues
Hello Daniel, * Daniel Neuberger wrote on Wed, Apr 20, 2011 at 03:56:15PM CEST: > Is there any way to make a dependent library implicitly use any > compiler flags used by a library on which it depends? Not automatically. libtool has 'inherited_linker_flags', but it is not appr

Implicitly specify compiler flags based on library dependencies

2011-04-20 Thread Daniel Neuberger
Is there any way to make a dependent library implicitly use any compiler flags used by a library on which it depends? I'm running into two problems that this would solve. The first is illustrated by these Makefile.amS: # libfoo AM_CPPFLAGS = -I/some/include_path lib_LTLIBRARIES = libf

implicitly specify compiler flags based on library dependencies

2011-04-20 Thread Daniel Neuberger
Is there any way to make a dependent library implicitly use any compiler flags used by a library on which it depends? I'm running into two problems that this would solve. The first is illustrated by these Makefile.amS: # libfoo AM_CPPFLAGS = -I/some/include_path lib_LTLIBRARIES = libf

setting compiler flags (was: Re: any way to set an automake variable in a top-level automake file, and have it apply to subdirs?)

2005-11-16 Thread Ed Hartnett
). In this (upcoming) release I also include a configure option --disable-flag-setting, which the user can use to turn off all these attempts to set compiler flags. Then he is on his own. This is the compromise I've stuck. Do you think it's a good approach? And thanks for all

Re: per-file compiler flags?

2002-12-24 Thread Alexandre Duret-Lutz
>>> "gd" == Guido Draheim <[EMAIL PROTECTED]> writes: [...] gd> (a) per file compile flags: gd> - it's an faq and later automake supports it natively This has yet to be implemented (any taker?). What Automake supports presently is per-target flags. The usual way to emulate per-object flags i

Re: per-file compiler flags?

2002-12-23 Thread Guido Draheim
Markus Werle wrote: Hi! Consider the following case: File VeryImportant.C contains code that really needs some optimization available. But all other files could (at least during development) be compiled without optimization, for the sake of not drinking too much coffee due to long compilation ti

per-file compiler flags?

2002-12-23 Thread Markus Werle
Hi! Consider the following case: File VeryImportant.C contains code that really needs some optimization available. But all other files could (at least during development) be compiled without optimization, for the sake of not drinking too much coffee due to long compilation times. Is there a conv

Re: Compiler flags

2002-11-10 Thread Guido Draheim
This is an autoconf.at.gnu.org question... Michael Lemke wrote: Today I've been trying to learn automake&autoconf. Something I can't figure out although it is the main reason I am investigating automake: How do I set compiler flags based on the compiler? For example, g77 req

Compiler flags

2002-11-10 Thread Michael Lemke
Today I've been trying to learn automake&autoconf. Something I can't figure out although it is the main reason I am investigating automake: How do I set compiler flags based on the compiler? For example, g77 requires -fdollar-ok but Sun Fortran won't like that. How can

Re: Compiler Flags

2000-11-23 Thread Simon Richter
On Mon, 20 Nov 2000, Tim Heath wrote: > AM_CXXFLAGS = -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT [...] > If you know of a better way please feel free to share it with me. I am > interested in how to do and if/then to use this only if I am compiling > on HPUX 11.0 with aCC etc. Why only wi

Re: Compiler Flags

2000-11-22 Thread Tim Heath
" == Simon Richter <[EMAIL PROTECTED]> >writes: > > >> On Fri, 17 Nov 2000, Tim Heath wrote: > >> How do I add compiler flags? What AM is necessary to accomplish that? > > Simon> Make your configure.in add them to $CFLAGS, before AC_PROG_CC > Simon>

Re: Compiler Flags

2000-11-22 Thread Tim Heath
compiling on HPUX 11.0 with aCC etc. Tom Tromey wrote: > > >>>>> "Simon" == Simon Richter <[EMAIL PROTECTED]> >writes: > > >> On Fri, 17 Nov 2000, Tim Heath wrote: > >> How do I add compiler flags? What AM is necessary to accomplish

Re: Compiler Flags

2000-11-19 Thread Tom Tromey
>>>>> "Simon" == Simon Richter <[EMAIL PROTECTED]> >writes: >> On Fri, 17 Nov 2000, Tim Heath wrote: >> How do I add compiler flags? What AM is necessary to accomplish that? Simon> Make your configure.in add them to $CFLAGS, before AC_PROG_CC S

Re: Compiler Flags

2000-11-18 Thread Ossama Othman
Hi, On Sat, Nov 18, 2000 at 06:41:17PM +0100, Simon Richter wrote: > On Fri, 17 Nov 2000, Tim Heath wrote: > > > How do I add compiler flags? What AM is necessary to accomplish that? > > Make your configure.in add them to $CFLAGS, before AC_PROG_CC (to make > sure

Re: Compiler Flags

2000-11-18 Thread Simon Richter
On Fri, 17 Nov 2000, Tim Heath wrote: > How do I add compiler flags? What AM is necessary to accomplish that? Make your configure.in add them to $CFLAGS, before AC_PROG_CC (to make sure the compiler actually accepts them). Simon -- GPG public key available from h

Re: aCC compiler Flags support

2000-11-18 Thread Simon Richter
On Fri, 17 Nov 2000, Tim Heath wrote: > I don't know of a way to use a #define within a source file for a > compiler flag. Can you tell me the other way to accomplish this goal? -D is the compiler flag for "add this definition as if it were #defined". Thus, the source should begin with #defin

Re: aCC compiler Flags support

2000-11-17 Thread Paul Berrevoets
I seem to remember that the documentation suggests adding them to INCLUDES: INCLUDES = -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT -- Paul Berrevoets Tim Heath wrote: > I have to add to DEFS: > > -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT > > in my Makefile. > > Is there a way to automate

Compiler Flags

2000-11-17 Thread Tim Heath
How do I add compiler flags? What AM is necessary to accomplish that? Thanks, Tim Heath

Re: aCC compiler Flags support

2000-11-16 Thread Simon Richter
On Thu, 16 Nov 2000, Tim Heath wrote: > -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT > Is there a way to automate this with an AM or something? There is, in fact, but these definitions are better placed as "#define"s at the beginning of source files. This way, you can easily tell from the sour

aCC compiler Flags support

2000-11-16 Thread Tim Heath
I have to add to DEFS: -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT in my Makefile. Is there a way to automate this with an AM or something? Thanks, Tim Heath