treewide: homogenize references to libfts for MUSL

The way we use -lfts isn't particularly consistent.  There's no reason
it shouldn't be.  glibc users shouldn't have to deal with someone else's
lack of rigor.

Signed-off-by: Philip A. Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip A. Prindeville authored and Philip Prindeville committed 2026-07-05 22:45:59 -06:00
1 parent 01a60d05db
commit c08761bfcc
7 files changed
+14 -24

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ define Package/fluent-bit/conffiles
/etc/fluent-bit/parsers.conf
endef
TARGET_LDFLAGS +=-lfts -latomic
TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lfts) -latomic
CMAKE_OPTIONS+= \
-DFLB_RELEASE=Yes \
+2 -2
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-selinux
PKG_VERSION:=3.10
PKG_RELEASE:=1
PKG_RELEASE:=2
SRC_NAME:=libselinux
PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz
@@ -34,7 +34,7 @@ define Package/python3-selinux
SECTION:=lang
CATEGORY:=Languages
TITLE:=SELinux runtime library bindings
DEPENDS:=+python3-light +libselinux
DEPENDS:=+python3-light +libselinux +USE_MUSL:musl-fts
URL:=https://github.com/selinuxproject
endef
+2 -2
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nfdump
PKG_VERSION:=1.7.8
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
@@ -42,7 +42,7 @@ define Package/nfdump/conffiles
/etc/config/nfcapd
endef
TARGET_LDFLAGS += -Wl,--as-needed $(if $(CONFIG_USE_MUSL),-lfts)
TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lfts)
define Package/nfdump/install
$(INSTALL_DIR) $(1)/usr/lib
+3 -6
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=tcpreplay
PKG_VERSION:=4.5.2
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/appneta/tcpreplay/releases/download/v$(PKG_VERSION)
@@ -80,7 +80,7 @@ $(call Package/tcpreplay/default)
endef
define Package/tcpbridge/description
tcpbridge is a tool for selectively briding network traffic across two
tcpbridge is a tool for selectively bridging network traffic across two
interfaces and optionally modifying the packets in between
endef
@@ -127,10 +127,6 @@ define Package/tcpreplay-all/description
to support switches, routers, and IP Flow/NetFlow appliances.
endef
ifneq ($(CONFIG_USE_MUSL),)
TARGET_LDFLAGS+= -lfts
endif
CONFIGURE_VARS += \
ac_cv_lib_nl_nl_cache_alloc=no \
ac_cv_lib_nl_genl_3_genl_connect=no \
@@ -144,6 +140,7 @@ CONFIGURE_ARGS += \
--with-libpcap="$(STAGING_DIR)/usr"
TARGET_CFLAGS += -std=gnu11
TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lfts)
define tcpreplayTemplate
define Package/$(1)/install
+3 -1
View File
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=exfatprogs
PKG_VERSION:=1.4.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/exfatprogs/exfatprogs/releases/download/$(PKG_VERSION)
@@ -40,6 +40,8 @@ CONFIGURE_ARGS += \
--enable-shared \
--disable-static
TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lfts)
define Package/exfat-mkfs/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.exfat $(1)/usr/sbin
+3 -1
View File
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nnn
PKG_VERSION:=5.1
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/jarun/nnn/tar.gz/v$(PKG_VERSION)?
@@ -35,4 +35,6 @@ define Package/nnn/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nnn $(1)/usr/bin
endef
TARGET_LDFLAGS += $(if $(CONFIG_USE_MUSL),-lfts)
$(eval $(call BuildPackage,nnn))
-11
View File
@@ -1,11 +0,0 @@
--- a/Makefile
+++ b/Makefile
@@ -165,7 +165,7 @@ CFLAGS += -std=c11 -Wall -Wextra -Wshado
CFLAGS += $(CFLAGS_OPTIMIZATION)
CFLAGS += $(CFLAGS_CURSES)
-LDLIBS += $(LDLIBS_CURSES) -lpthread
+LDLIBS += $(LDLIBS_CURSES) -lpthread -lfts
# static compilation needs libgpm development package
ifeq ($(strip $(O_STATIC)),1)