Browse Source

xfsprogs: fix compilation under glibc

Missing link to librt.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev 6 months ago
parent
commit
4d4d9a2c32
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/xfsprogs/Makefile

+ 2 - 1
utils/xfsprogs/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=xfsprogs
 PKG_VERSION:=5.9.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs
@@ -68,6 +68,7 @@ CONFIGURE_ARGS += \
 	--disable-libicu
 
 TARGET_CFLAGS += -DHAVE_MAP_SYNC
+TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
 
 define Package/xfs-admin/install
 	$(INSTALL_DIR) $(1)/sbin