telegraf: enable static linking for arm targets
authorNiklas Thorild <redacted>
Wed, 22 Apr 2026 17:10:45 +0000 (19:10 +0200)
committerHannu Nyman <redacted>
Fri, 24 Apr 2026 18:00:15 +0000 (21:00 +0300)
- Fixes "2.44 assertion fail elf32-arm.c:9910" build error

Signed-off-by: Niklas Thorild <redacted>
utils/telegraf/Makefile

index 2dfbec3f9d82f0e0822e288d137cdcfd71cd5c3f..2dbccdcae128115999b2c08e5bac4281e7b5827c 100644 (file)
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=telegraf
 PKG_VERSION:=1.38.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/influxdata/telegraf/tar.gz/v$(PKG_VERSION)?
@@ -24,7 +24,7 @@ GO_PKG_LDFLAGS_X := \
   github.com/influxdata/telegraf/internal.Version=$(PKG_VERSION) \
   github.com/influxdata/telegraf/internal.Branch=HEAD
 
-ifeq ($(CONFIG_mips)$(CONFIG_mipsel),y)
+ifneq ($(filter arm mips mipsel,$(ARCH)),)
   TARGET_LDFLAGS += -static
 endif
 
git clone https://git.99rst.org/PROJECT