lib/Makefile: Fix oid_registry build dependency
authorTim Gardner <tim.gardner@canonical.com>
Tue, 4 Dec 2012 19:52:28 +0000 (12:52 -0700)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 6 Dec 2012 06:55:01 +0000 (17:25 +1030)
commit527897ccd968c86ad3265d62962c8beccdb94e47
tree7432b19ca679dd2ad2ed1784f4ac4deb31817b5b
parentf3537f91f9be2ce5fcbaa1aa6d787ad0436daec6
lib/Makefile: Fix oid_registry build dependency

It is $(obj)/oid_registry.o that is dependent on $(obj)/oid_registry_data.c.
The object file cannot be built until $(obj)/oid_registry_data.c has been
generated.

A periodic and hard to reproduce parallel build failure is due to
this incorrect lib/Makefile dependency. The compile error is completely
disingenuous.

  GEN     lib/oid_registry_data.c
Compiling 49 OIDs
  CC      lib/oid_registry.o
gcc: error: lib/oid_registry.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[3]: *** [lib/oid_registry.o] Error 4

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/Makefile