From: Ian Jackson Date: Fri, 1 Jun 2012 17:02:03 +0000 (+0100) Subject: libxl: fix Makefile race bug relating to _paths.h X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8351 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c779cf076b663b2434c6b27ff391c346558e1e77;p=xen.git libxl: fix Makefile race bug relating to _paths.h _paths.h needs to be in AUTOINCS. That arranges for it to be an explicit dependency of all object files. This is necessary so that it is made before any compilation is attempted. Making it a dependency of xl.h (as in 25426:e53a1d3c212c) is harmless, but not sufficient because that only takes effect if there is already an autogenerated .d file naming xl.h as a dependency of relevant object files. Signed-off-by: Ian Jackson Acked-by: Ian Campbell Committed-by: Ian Jackson --- diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 8f78c05df2..e7d5cc2638 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -72,7 +72,7 @@ LIBXL_OBJS += _libxl_types.o libxl_flask.o _libxl_types_internal.o $(LIBXL_OBJS): CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) $(CFLAGS_libxenstore) $(CFLAGS_libblktapctl) -include $(XEN_ROOT)/tools/config.h -AUTOINCS= libxlu_cfg_y.h libxlu_cfg_l.h _libxl_list.h +AUTOINCS= libxlu_cfg_y.h libxlu_cfg_l.h _libxl_list.h _paths.h AUTOSRCS= libxlu_cfg_y.c libxlu_cfg_l.c LIBXLU_OBJS = libxlu_cfg_y.o libxlu_cfg_l.o libxlu_cfg.o \ libxlu_disk_l.o libxlu_disk.o libxlu_vif.o libxlu_pci.o