automake-patches
[Top][All Lists]
Advanced

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

Re: i have a new feature. anybody want it?


From: Ralf Wildenhues
Subject: Re: i have a new feature. anybody want it?
Date: Wed, 17 Feb 2010 08:15:58 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

Hello Jay,

* Jay G. Scott wrote on Mon, Feb 15, 2010 at 07:07:44PM CET:
> 
> while working on GAMESS (a quantum chemistry program) i ran in
> to a situation that made it clear that individual source files
> needed to be compiled with different optimization options.
> automake doesn't support that.

Yes, it does, by way of per-target flags like foo_CFLAGS, foo_FFLAGS,
etc.  What probably makes you think it doesn't is the fact that it
let's the user (the one running configure) override the developer
(the author of Makefile.am and configure.ac).  But that is on purpose.

If you have a problem with the default setting of CFLAGS etc for cases
where the user did not set it, then it is useful to move the default
setting that AC_PROG_{CC,F77,FC} do to the respective AM_{C,F,...}FLAGS
variable and substitute that, and then use the per-target flags for
overrides.

Cheers,
Ralf




reply via email to

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