From abf3e8f32099a20481024a039f915449f9a746b0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 3 Jul 2017 23:16:58 +0200 Subject: [PATCH] rhash: use the new gettext logic This commit switches to use the new gettext logic, which involves: - using TARGET_NLS_DEPENDENCIES instead of hand-encoded dependencies on gettext/host-gettext - using TARGET_NLS_LIBS to force linking against libintl - dropping BR2_PACKAGE_GETTEXT selection Signed-off-by: Thomas Petazzoni Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- package/rhash/Config.in | 1 - package/rhash/rhash.mk | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package/rhash/Config.in b/package/rhash/Config.in index 46f6ca7a9a..2ddcb00feb 100644 --- a/package/rhash/Config.in +++ b/package/rhash/Config.in @@ -1,6 +1,5 @@ config BR2_PACKAGE_RHASH bool "rhash" - select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help LibRHash is a professional, portable, thread-safe C library for computing a wide variety of hash sums, such as CRC32, diff --git a/package/rhash/rhash.mk b/package/rhash/rhash.mk index 6cfc271ec0..53f49d8d3c 100644 --- a/package/rhash/rhash.mk +++ b/package/rhash/rhash.mk @@ -10,12 +10,9 @@ RHASH_SITE = https://sourceforge.net/projects/rhash/files/rhash/$(RHASH_VERSION) RHASH_LICENSE = MIT RHASH_LICENSE_FILES = COPYING RHASH_INSTALL_STAGING = YES - -ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y) -RHASH_DEPENDENCIES += gettext -RHASH_ADDCFLAGS += -DUSE_GETTEXT -RHASH_ADDLDFLAGS += -lintl -endif +RHASH_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) +RHASH_ADDLDFLAGS = $(TARGET_NLS_LIBS) +RHASH_ADDCFLAGS = $(if $(BR2_SYSTEM_ENABLE_NLS),-DUSE_GETTEXT) ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx) RHASH_DEPENDENCIES += openssl -- 2.30.2