This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: make variables defined via include


>>> "Harlan" == Harlan Stenn <Harlan.Stenn@pfcs.com> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]