]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
libxc: use $XEN_ROOT to reference libelf in xen
authorWei Liu <wei.liu2@citrix.com>
Wed, 9 Mar 2016 19:18:41 +0000 (19:18 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:35 +0000 (16:32 +0000)
Stubdom needs to compile and link libelf in xen. Using relative path
breaks that.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/Makefile

index 1619c06d753c60d863609e668756a61bb34906c4..3a0a839481b1c61e053ed9264e1be57eafa53371 100644 (file)
@@ -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