Mohammad Akhlaghi wrote:
> > How can I get the `-L<LIB_PATH>' part of `LTLIB<NAME>' into LDFLAGS?
> 
> The problem is fixed now. As suggested in the documentation, I just 
> appended the necessary `LIB<NAME>' entries to `LDADD' and included 
> `LDADD' to the `program_LDADD' (of `Makefile.am').

Additionally:
Automake offers you a different *_LDFLAGS variable for every program. [1][2]
This way, you can link some of your programs against a specific library,
without forcing you to link _all_ the programs against it.

Bruno

[1] https://www.gnu.org/software/automake/manual/html_node/Linking.html
[2] 
https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html


Reply via email to