libxenstat: avoid build race
authorJan Beulich <jbeulich@suse.com>
Tue, 8 Dec 2020 07:53:18 +0000 (08:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Dec 2020 07:53:18 +0000 (08:53 +0100)
commit777e3590f154e6a8af560dd318b9465fa168db20
tree01ef78e1d4fd5bc59da86b6d109a0db585584882
parent0919030638e733993edb8ace762227e440a0cb65
libxenstat: avoid build race

Olaf reported observing

xenstat_qmp.c:26:10: fatal error: _paths.h: No such file or directory
.../tools/libs/stat/../../../tools/Rules.mk:153: xenstat_qmp.opic] Error 1

Obviously _paths.h, when included by any of the sources, needs to be
created in advance of compiling any of them, not just when compiling
into non-PIC objects.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/stat/Makefile