From 95bbfa2a23b9530342e3f9d37c1ff5e3b7847a99 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 9 Jan 2021 16:07:33 -0800 Subject: [PATCH] lpc21isp: fix compilation with glibc Because -static is being passed, extra linker flags are needed. Signed-off-by: Rosen Penev --- devel/lpc21isp/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devel/lpc21isp/Makefile b/devel/lpc21isp/Makefile index fbba208123..a12f8b2197 100644 --- a/devel/lpc21isp/Makefile +++ b/devel/lpc21isp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lpc21isp PKG_VERSION:=197 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_LICENSE:=LGPL-3.0-or-later PKG_LICENSE_FILES:=README gpl.txt lgpl-3.0.txt @@ -34,6 +34,8 @@ define Package/lpc21isp/description and Analog Devices ADUC70xx. endef +TARGET_CFLAGS += $(if $(CONFIG_USE_GLIBC),-lc -lgcc_eh) + define Package/lpc21isp/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/lpc21isp $(1)/usr/sbin/ -- 2.30.2