-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I am auditing the libtool texinfo manual in preparation for the next release.
Currently, it says:
~ The flags `-dlopen' or `-dlpreopen' (*note Link mode::) would fit better in the PROGRAM_LDADD variable. Unfortunately, GNU automake, up to release 1.4, doesn't accept these flags in a PROGRAM_LDADD variable, so you have the following alternatives:
~ * add them to PROGRAM_LDFLAGS, and list the libraries in ~ PROGRAM_DEPENDENCIES, then wait for a release of GNU automake that ~ accepts these flags where they belong;
~ * surround the flags between quotes, but then you must set ~ PROGRAM_DEPENDENCIES too:
~ program_LDADD = "-dlopen" libfoo.la ~ program_DEPENDENCIES = libfoo.la
~ * set and `AC_SUBST' variables DLOPEN and DLPREOPEN in ~ `configure.in' and use [EMAIL PROTECTED]@' and [EMAIL PROTECTED]@' as ~ replacements for the explicit flags `-dlopen' and `-dlpreopen' in ~ `program_LDADD'. Automake will discard `AC_SUBST'ed variables ~ from dependencies, so it will behave exactly as we expect it to ~ behave when it accepts these flags in `program_LDADD'. But hey!, ~ this is ugly!
I am unsure of the wisdom of these words. Should I change the manual to wholeheartedly recommend the first alternative, and discard the others? Or should Automake be patched to accept `program_LDADD = -dlopen foo.la'?
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
iD8DBQFAO5PaFRMICSmD1gYRAjNNAKC6kRa8TRE+Fe4JRy0CUtMH3IbPjwCfYDaI 48Iddk/Izgc2UgvPfu27HIQ= =Kwq3 -----END PGP SIGNATURE-----