[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automake1.10 ignoring _LDFLAGS
From: |
Ralf Wildenhues |
Subject: |
Re: automake1.10 ignoring _LDFLAGS |
Date: |
Sat, 17 Feb 2007 19:33:26 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Tom, Gary, all,
* Tom Epperly wrote on Tue, Feb 13, 2007 at 07:34:38PM CET:
> I am in the process of upgrading Babel,
> http://www.llnl.gov/CASC/components/, from automake 1.9.6 to
> automake (GNU automake) 1.10
[...]
> Automake 1.10 seems to be ignoring my _LDFLAGS settings for library and
> program targets.
Does this help (quoting automake/NEWS for 1.10):
| - Per-target flags are now correctly handled in link rules.
|
| For instance maude_CFLAGS correctly overrides AM_CFLAGS; likewise
| for maude_LDFLAGS and AM_LDFLAGS. Previous versions bogusly
| preferred AM_CFLAGS over maude_CFLAGS while linking, and they
| used both AM_LDFLAGS and maude_LDFLAGS on the same link command.
|
| The fix for compiler flags (i.e., using maude_CFLAGS instead of
| AM_CFLAGS) should not hurt any package since that is how _CFLAGS
| is expected to work (and actually works during compilation).
|
| However using maude_LDFLAGS "instead of" AM_LDFLAGS rather than
| "in addition to" breaks backward compatibility with older versions.
| If your package used both variables, as in
|
| AM_LDFLAGS = common flags
| bin_PROGRAMS = a b c
| a_LDFLAGS = more flags
| ...
|
| and assumed *_LDFLAGS would sum up, you should rewrite it as
|
| AM_LDFLAGS = common flags
| bin_PROGRAMS = a b c
| a_LDFLAGS = $(AM_LDFLAGS) more flags
| ...
|
| This new behavior of *_LDFLAGS is more coherent with other
| per-target variables, and the way *_LDFLAGS variables were
| considered internally.
Cheers,
Ralf