From 5ed9cce4a68ee156d809ccf346b287c0c2abf9e2 Mon Sep 17 00:00:00 2001 From: Qin Guang Date: Tue, 19 May 2020 18:13:20 +0800 Subject: [PATCH 1/3] Fix ttyd link error on 19.07 using glibc:/lib/libdl.so.2: error adding symbols: DSO missing from command line Signed-off-by: Qin Guang --- utils/ttyd/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/ttyd/Makefile b/utils/ttyd/Makefile index 71e6f122cbed81..0ccfed25951a7b 100644 --- a/utils/ttyd/Makefile +++ b/utils/ttyd/Makefile @@ -41,6 +41,8 @@ define Package/ttyd/conffiles /etc/config/ttyd endef +TARGET_LDFLAGS += -ldl + define Package/ttyd/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/ From 12a3ae47f983cf238e4ba6cb1d11307aceefe117 Mon Sep 17 00:00:00 2001 From: Qin Guang Date: Tue, 19 May 2020 18:13:20 +0800 Subject: [PATCH 2/3] ttyd: fix ttyd link error on 19.07 using glibc:/lib/libdl.so.2: error adding symbols: DSO missing from command line Signed-off-by: Qin Guang --- utils/ttyd/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/ttyd/Makefile b/utils/ttyd/Makefile index 71e6f122cbed81..0ccfed25951a7b 100644 --- a/utils/ttyd/Makefile +++ b/utils/ttyd/Makefile @@ -41,6 +41,8 @@ define Package/ttyd/conffiles /etc/config/ttyd endef +TARGET_LDFLAGS += -ldl + define Package/ttyd/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/ From d267d17363e9b1cbf176f26d4658db0194d43a0e Mon Sep 17 00:00:00 2001 From: Qin Guang Date: Wed, 27 May 2020 09:13:56 +0800 Subject: [PATCH 3/3] ttyd: fix ttyd link error on 19.07 using glibc --- utils/ttyd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ttyd/Makefile b/utils/ttyd/Makefile index 0ccfed25951a7b..49cb8ec8408c38 100644 --- a/utils/ttyd/Makefile +++ b/utils/ttyd/Makefile @@ -41,7 +41,7 @@ define Package/ttyd/conffiles /etc/config/ttyd endef -TARGET_LDFLAGS += -ldl +TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-ldl) define Package/ttyd/install $(INSTALL_DIR) $(1)/usr/bin