From: Liang Yang Date: Sat, 30 Apr 2022 17:29:20 +0000 (+0800) Subject: docker: fix compilation with glibc X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=624f48a6027f99cd7f1213e43804bed57c8a3d55;p=openwrt-packages.git docker: fix compilation with glibc Signed-off-by: Liang Yang --- diff --git a/utils/docker/Makefile b/utils/docker/Makefile index 41ac491ed..33678ddf4 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)