mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-01 20:05:46 +00:00
build: fix build of fresh checkout
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.
This commit is contained in:
parent
3c3644d30f
commit
ca02b101d7
@ -654,8 +654,7 @@ libvirt_driver_remote_la_LIBADD = $(GNUTLS_LIBS) \
|
|||||||
libvirt-net-rpc.la
|
libvirt-net-rpc.la
|
||||||
libvirt_driver_remote_la_SOURCES = $(REMOTE_DRIVER_SOURCES)
|
libvirt_driver_remote_la_SOURCES = $(REMOTE_DRIVER_SOURCES)
|
||||||
|
|
||||||
REMOTE_DRIVER_PREREQS = $(REMOTE_DRIVER_GENERATED)
|
BUILT_SOURCES += $(REMOTE_DRIVER_GENERATED)
|
||||||
%remote_driver.lo: $(REMOTE_DRIVER_PREREQS)
|
|
||||||
|
|
||||||
endif WITH_REMOTE
|
endif WITH_REMOTE
|
||||||
|
|
||||||
@ -1297,7 +1296,7 @@ libvirt_la_BUILT_LIBADD += libvirt_probes.lo
|
|||||||
libvirt_la_DEPENDENCIES += libvirt_probes.lo libvirt_probes.o
|
libvirt_la_DEPENDENCIES += libvirt_probes.lo libvirt_probes.o
|
||||||
nodist_libvirt_la_SOURCES = libvirt_probes.h
|
nodist_libvirt_la_SOURCES = libvirt_probes.h
|
||||||
if WITH_REMOTE
|
if WITH_REMOTE
|
||||||
REMOTE_DRIVER_PREREQS += libvirt_probes.h
|
nodist_libvirt_driver_remote_la_SOURCES = libvirt_probes.h
|
||||||
endif WITH_REMOTE
|
endif WITH_REMOTE
|
||||||
|
|
||||||
BUILT_SOURCES += libvirt_probes.h libvirt_probes.stp libvirt_functions.stp
|
BUILT_SOURCES += libvirt_probes.h libvirt_probes.stp libvirt_functions.stp
|
||||||
|
Loading…
Reference in New Issue
Block a user