From 777e3590f154e6a8af560dd318b9465fa168db20 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 8 Dec 2020 08:53:18 +0100 Subject: [PATCH] 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 Signed-off-by: Jan Beulich Reviewed-by: Bertrand Marquis Acked-by: Wei Liu --- tools/libs/stat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/stat/Makefile b/tools/libs/stat/Makefile index 8353e96946..c99508ae6b 100644 --- a/tools/libs/stat/Makefile +++ b/tools/libs/stat/Makefile @@ -30,7 +30,7 @@ APPEND_LDFLAGS += $(LDLIBS-y) include $(XEN_ROOT)/tools/libs/libs.mk -$(LIB_OBJS): _paths.h +$(LIB_OBJS) $(PIC_OBJS): _paths.h PYLIB=bindings/swig/python/_xenstat.so PYMOD=bindings/swig/python/xenstat.py -- 2.30.2