Hello Sergio, * Sergio Belkin wrote on Thu, Jan 27, 2011 at 01:15:45PM CET: > 2011/1/27 Ralf Wildenhues <[email protected]>: > > * Sergio Belkin wrote on Thu, Jan 27, 2011 at 04:40:10AM CET: > >> tests = $(EXTRA_PROGRAMS) > > > >> if forcestatic > >> tests: LIBS += $(STATIC_RESOLV) > >> end if > >> > >> The problem is that automake it complains that . > >> > >> tests was already defined in condition forcestatic, which is included > >> in condition TRUE ... > >> Makefile.am:150: ... `tests' previously defined here [...] > > variable = foo > > if COND > > variable += bar > > endif > > Thanks but i if I do that the static library is not appended at the > end, and so it fails....
Please show a small reproducible example that fails for you. Maybe you did not set STATIC_RESOLV in this Makefile.am or did not call AC_SUBST([STATIC_RESOLV]) in configure.ac? Cheers, Ralf
