From 5af6f2592e1fb6ce73803b8fbbe1e6b636b184d9 Mon Sep 17 00:00:00 2001 From: Liang Yang Date: Sun, 1 May 2022 01:30:47 +0800 Subject: [PATCH] dockerd: fix compilation with glibc Signed-off-by: Liang Yang (cherry picked from commit 9963312067185d7d47970d2abfb59b6c1a7bfdd5) --- utils/dockerd/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/dockerd/Makefile b/utils/dockerd/Makefile index 99d6aa490b..c2cc43db72 100644 --- a/utils/dockerd/Makefile +++ b/utils/dockerd/Makefile @@ -63,6 +63,7 @@ endef GO_PKG_BUILD_VARS += GO111MODULE=auto TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS) TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) +TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lc -lgcc_eh) # $(1) = path to dependent package 'Makefile' # $(2) = relevant dependency '.installer' file -- 2.30.2