[CRIU] [PATCH 05/10] build/zdtm: Support cross-build
Dmitry Safonov
dima at arista.com
Fri Nov 22 00:56:38 MSK 2019
Maybe not that useful, but only little change needed.
Signed-off-by: Dmitry Safonov <dima at arista.com>
---
test/zdtm/Makefile.inc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/zdtm/Makefile.inc b/test/zdtm/Makefile.inc
index 7584d3b0605c..8f2650b44043 100644
--- a/test/zdtm/Makefile.inc
+++ b/test/zdtm/Makefile.inc
@@ -29,7 +29,10 @@ ifeq ($(ARCH),arm)
endif
endif
-CC := gcc
+HOSTCC ?= gcc
+ifeq ($(origin CC), default)
+ CC := $(CROSS_COMPILE)$(HOSTCC)
+endif
CFLAGS += -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
CFLAGS += $(USERCFLAGS)
CFLAGS += -D_GNU_SOURCE
--
2.24.0
More information about the CRIU
mailing list