From 903f8124aea1575da17f13eb93e66df9bc581dd9 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Fri, 13 Jan 2023 15:31:09 +0100 Subject: [PATCH] Make agent static build the default for host build as well When following the getting started guide, the commands are all executed on the host and the agent built is dynamically linked. This will trigger an error when running a container as the microVM image's glibc version will likely not match the one from the host. Setting STATIC_BUILD to on for the host as is done for the docker build ensure that the agent is suitable for use by the microVM.Ensure agent is build statically in all cases --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b7ac1b21d..9030a3ac5 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ TEST_SUBDIRS:=$(addprefix test-,$(SUBDIRS)) INTEG_TEST_SUBDIRS:=$(addprefix integ-test-,$(SUBDIRS)) export INSTALLROOT?=/usr/local -export STATIC_AGENT +export STATIC_AGENT=on export DOCKER_IMAGE_TAG?=latest