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