automake
[Top][All Lists]
Advanced

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

Re: Desired feature


From: Gary V. Vaughan
Subject: Re: Desired feature
Date: Thu, 04 Dec 2003 11:25:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

-----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      ())_.  address@hidden,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-----





reply via email to

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