docker: fix compilation with glibc

Signed-off-by: Liang Yang <ggg17226@gmail.com>
This commit is contained in:
Liang Yang 2022-02-27 20:09:27 +08:00 committed by Rosen Penev
parent a11359b889
commit fd30ce33f4

View file

@ -39,6 +39,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),-lgcc_eh)
define Build/Prepare
$(Build/Prepare/Default)