-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Alexandre Duret-Lutz wrote: | On Thu, Dec 04, 2003 at 08:49:04AM +0000, Gary V. Vaughan wrote: | |>It would be great to have `LT_LDFLAGS = -module', rather than 15 lines of |>`foo_LDFLAGS = -module' in a future m4 Makefile.am :-) | | | Regarding M4: last time I checked you had a directory dedicated to | modules. Why don't you simply use AM_LDFLAGS = -module in this | directory?
That's how I do it at the moment, but I want to convert to a non-recursive make, and then the AM_LDFLAGS will apply to the other directories as well.
| More generally I think adding an LT_LDFLAGS variable is not a | solution, because some day Bob will come and say "Now I need a global | LDFLAGS variable for standard libtool libraries, and another different | LDFLAGS for libtool modules; not being able to distinguish these two | sets of libraries is an extremely annoying (magnitude 42 on Richter's | scale) misfeature of Automake."
:-D
| Maybe we need a way to apply flags to groups of files, and tying flags | to dir_PRIMARY variables (as in bin_PROGRAMS_LDFLAGS) would be an | option.
Agreed. That is definitely a better solution, I like it a lot :-)
Actually, now that you point it out, I would hit that problem myself, since m4 has normal _LTLIBRARIES, noinst_LTLIBRARIES and modules. I would be happy if I could do this:
~ AM_LDFLAGS = everything gets these ~ noinst_LTLIBRARIES_LDFLAGS = these are for convenience libs ~ lib_LTLIBRARIES_LDFLAGS = these are for other libtool libs ~ libm4_la_LDFLAGS = but I can override non module libs individually
That is, I think target specific flags should override PRIMARY group flags, not be in addition to them.
Cheers, Gary. - -- Gary V. Vaughan ())_. [EMAIL PROTECTED],gnu.org} Research Scientist ( '/ http://www.oranda.demon.co.uk GNU Hacker / )= http://www.gnu.org/software/libtool Technical Author `(_~)_ http://sources.redhat.com/autobook -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQE/zxnCFRMICSmD1gYRAvlQAKCehVcMvZ0W71Wk3FIFHTDgca7LvACgqnMV AimUpITNy5koaMWEPe+rZLc= =EmD/ -----END PGP SIGNATURE-----