dosfstools: Fix compilation with full NLS
authorRosen Penev <rosenp@gmail.com>
Sun, 19 May 2019 23:38:55 +0000 (16:38 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 23 Jul 2019 03:13:05 +0000 (20:13 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 28a18b8eccfa478dc2028363e70bed32977ea3a3)

utils/dosfstools/Makefile

index 52d050c4b36af83909f3eb136473da1ffa6e0210..0fc31c7720dcb64cdb7cc39453527f06ff544344 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dosfstools
 PKG_VERSION:=4.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/dosfstools/dosfstools/releases/download/v$(PKG_VERSION)/ \
@@ -42,6 +42,8 @@ define Package/dosfstools/description
        The dosfstools package includes the mkfs.fat and fsck.fat utilities, which respectively make and check MS-DOS FAT filesystems.
 endef
 
+TARGET_LDFLAGS += $(if $(ICONV_FULL),-liconv)
+
 define Package/dosfstools/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fatlabel $(1)/usr/sbin/