From: Jan Beulich Date: Tue, 8 Dec 2020 07:53:18 +0000 (+0100) Subject: libxenstat: avoid build race X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1335 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=777e3590f154e6a8af560dd318b9465fa168db20;p=xen.git 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 --- 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