>>> "Harlan" == Harlan Stenn <[EMAIL PROTECTED]> writes:

[...]

 Harlan> Unfortunately, it now appears that at the time when the
 Harlan> Makefile is initially scanned (by gmake 1.79.1),
 Harlan> $(libfoo_la_LIBDEP) is not defined, so it does not
 Harlan> appear as a dependency.  However, when "make" goes to
 Harlan> create the target, $(libfoo_la_LIBDEP) *is* defined, so
 Harlan> the link fails because the library has not yet been
 Harlan> built.

 Harlan> Is this making sense?

Sounds like you just hit the declaration-order-does-matter issue:

http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01692.html

 Harlan> Any ideas on how to fix the problem?

Define your rules only once all involved variables are defined?
-- 
Alexandre Duret-Lutz


Reply via email to