docker: fix compilation with glibc
authorLiang Yang <ggg17226@gmail.com>
Sun, 27 Feb 2022 12:09:27 +0000 (20:09 +0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 9 Mar 2022 10:14:45 +0000 (02:14 -0800)
Signed-off-by: Liang Yang <ggg17226@gmail.com>
utils/docker/Makefile

index 41ac491ed559e719a33a00799716f5ac0ddeec0f..77291e0411bca72defab9e7abee48035aa8f6ad7 100644 (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)