[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
appending LDADD to prog_LDADD
From: |
Daniel Pocock |
Subject: |
appending LDADD to prog_LDADD |
Date: |
Wed, 26 Mar 2014 09:15:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
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?
- appending LDADD to prog_LDADD,
Daniel Pocock <=