From: Liang Yang Date: Sat, 30 Apr 2022 17:29:20 +0000 (+0800) Subject: docker: fix compilation with glibc X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9d2246b281ef1ecc596babefafad1111c056c882;p=feed%2Fpackages.git docker: fix compilation with glibc Signed-off-by: Liang Yang (cherry picked from commit 624f48a6027f99cd7f1213e43804bed57c8a3d55) --- diff --git a/utils/docker/Makefile b/utils/docker/Makefile index b161334666..4572e897b5 100644 --- a/utils/docker/Makefile +++ b/utils/docker/Makefile @@ -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),-lc -lgcc_eh) define Build/Prepare $(Build/Prepare/Default)