[Top][All Lists]

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

Re: getgroups.c failes to compile

From: Bruno Haible
Subject: Re: getgroups.c failes to compile
Date: Sun, 26 May 2019 01:52:50 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; )

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').

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.


[1] https://www.gnu.org/software/automake/manual/html_node/Linking.html

reply via email to

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