mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 22:09:06 +00:00
Makefile: fix cross-compiling issues
Replace all the host paths with a prefix sysroot directory, it defaults to be empty, but can be overridden by the variable set in environment(make -e) or being passed to make command. Tracked-On: #1307 Signed-off-by: Ming Liu <liu.ming50@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ VERSION_H = $(BUILDDIR)/include/acrnprobe/version.h
|
||||
|
||||
LIBS = -lpthread -lxml2 -lcrypto -lrt -lblkid -lext2fs -lcom_err \
|
||||
$(EXTRA_LIBS)
|
||||
INCLUDE += -I $(CURDIR)/include -I /usr/include/libxml2
|
||||
INCLUDE += -I $(CURDIR)/include -I $(SYSROOT)/usr/include/libxml2
|
||||
INCLUDE += -I $(BUILDDIR)/include/acrnprobe
|
||||
CFLAGS += $(INCLUDE)
|
||||
CFLAGS += -fdata-sections
|
||||
|
Reference in New Issue
Block a user