lpc21isp: fix compilation with glibc
authorRosen Penev <redacted>
Sun, 10 Jan 2021 00:07:33 +0000 (16:07 -0800)
committerRosen Penev <redacted>
Sun, 10 Jan 2021 00:09:24 +0000 (16:09 -0800)
Because -static is being passed, extra linker flags are needed.

Signed-off-by: Rosen Penev <redacted>
devel/lpc21isp/Makefile

index fbba208123f67a8c76f9602b75d85036ee0ee74e..a12f8b2197c0d2b5224afc7c189c6d0ad40d70c7 100644 (file)
@@ -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/
git clone https://git.99rst.org/PROJECT