automake
[Top][All Lists]
Advanced

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

Re: appending LDADD to prog_LDADD


From: Diego Elio Pettenò
Subject: Re: appending LDADD to prog_LDADD
Date: Thu, 27 Mar 2014 19:59:33 +0000

That is indeed the correct way to handle it. Given I know Stefano is
unlikely to have time any time soon, I think patches will be welcome but
may linger for a while :)


Diego Elio Pettenò — Flameeyes
address@hidden — http://blog.flameeyes.eu/


On 26 March 2014 08:15, Daniel Pocock <address@hidden> wrote:

>
>
> I understand from the docs that specifying prog_LDADD will override
> LDADD (and the same for prog_CPPFLAGS, ...)
>
>     http://www.gnu.org/software/automake/manual/html_node/Linking.html
>
> If it is desired to merge prog_LDADD and LDADD, is there any recommended
> or preferred solution?
>
> I've tried
>
>     LDADD = -lfoo
>     LDADD += -lrt
>
>     prog_LDADD = -lfoo $(LDADD)
>
> and it seems to work for me - if this is the way to go, could it be
> included in the manual page perhaps?
>
>
>
>
>
>


reply via email to

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