]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix build of fresh checkout
authorEric Blake <eblake@redhat.com>
Wed, 6 Jun 2012 15:45:04 +0000 (09:45 -0600)
committerCole Robinson <crobinso@redhat.com>
Fri, 15 Jun 2012 16:24:04 +0000 (12:24 -0400)
Commit 7bff56a worked in an incremental build, but fails for a
fresh clone; apparently, if make sees both an actual file
spelling and an inference rule, only the exact spelling is used.

  CCLD   libvirt_driver_test.la
  CC     libvirt_driver_remote_la-remote_driver.lo
remote/remote_driver.c:4707:34: fatal error: remote_client_bodies.h: No such file or directory
compilation terminated.

BUILT_SOURCES to the rescue, instead of trying to mess with .lo
dependencies directly.

* src/Makefile.am (REMOTE_DRIVER_PREREQS, %remote_driver.lo): Drop...
(BUILT_SOURCES): ...and add here instead.
(cherry picked from commit ca02b101d74510df424c5ea659d7b7d481874f98)

Conflicts:

src/Makefile.am

src/Makefile.am

index e0ebc6cccfa377ac9b2bac3a08a6551f1e83d43a..db02eb0fe032bab2c7ba87bf8c1e5f076d6734ca 100644 (file)
@@ -661,8 +661,7 @@ libvirt_driver_remote_la_LDFLAGS += -module -avoid-version
 endif
 libvirt_driver_remote_la_SOURCES = $(REMOTE_DRIVER_SOURCES)
 
-REMOTE_DRIVER_PREREQS = $(REMOTE_DRIVER_GENERATED)
-%remote_driver.lo: $(REMOTE_DRIVER_PREREQS)
+BUILT_SOURCES += $(REMOTE_DRIVER_GENERATED)
 
 endif WITH_REMOTE
 
@@ -1299,7 +1298,7 @@ libvirt_la_BUILT_LIBADD += probes.o
 libvirt_la_DEPENDENCIES += probes.o
 nodist_libvirt_la_SOURCES = probes.h
 if WITH_REMOTE
-$(REMOTE_DRIVER_GENERATED): probes.h
+nodist_libvirt_driver_remote_la_SOURCES = probes.h
 endif WITH_REMOTE
 
 BUILT_SOURCES += probes.h libvirt_probes.stp libvirt_functions.stp