On Thu, Jan 27, 2011 at 03:40 UTC, Sergio Belkin <[email protected]> wrote:
> I have the target test, being:
>
> tests = $(EXTRA_PROGRAMS)
>
> I've added:
>
> if forcestatic
> tests: LIBS += $(STATIC_RESOLV)
> end if

How about:

mytestprog_LDADD =
if forcestatic
mytestprog_LDADD += $(STATIC_RESOLV)
endif
^^^^^ one word

If you have more than the hypothetical mytestprog in EXTRA_PROGRAMS
which require the additional library, use simply LDADD instead of
mytestprog_LDADD.

Cheers,
Dave Hart

Reply via email to