From 30233899cab15afa234ca975abf24cb6d95437f3 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 9 Mar 2016 19:18:41 +0000 Subject: [PATCH] libxc: use $XEN_ROOT to reference libelf in xen Stubdom needs to compile and link libelf in xen. Using relative path breaks that. Signed-off-by: Wei Liu --- tools/libxc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 1619c06d75..3a0a839481 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -68,8 +68,8 @@ else GUEST_SRCS-y += xc_nomigrate.c endif -vpath %.c ../../xen/common/libelf -CFLAGS += -I../../xen/common/libelf +vpath %.c $(XEN_ROOT)/xen/common/libelf +CFLAGS += -I$(XEN_ROOT)/xen/common/libelf ELF_SRCS-y += libelf-tools.c libelf-loader.c ELF_SRCS-y += libelf-dominfo.c -- 2.39.5