dockerd: fix compilation with glibc
authorLiang Yang <ggg17226@gmail.com>
Sat, 30 Apr 2022 17:30:47 +0000 (01:30 +0800)
committerRosen Penev <rosenp@gmail.com>
Sat, 30 Apr 2022 18:54:56 +0000 (11:54 -0700)
Signed-off-by: Liang Yang <ggg17226@gmail.com>
utils/dockerd/Makefile

index 71cabb0d13e4c003187c74064aa10bd7ec17cb7e..1300e5a5fe830bb7ee7c9110f045d875b7e5041f 100644 (file)
@@ -51,6 +51,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