From patchwork Thu Sep 20 22:42:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: gettext: don't build tools if they won't be installed X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 185519 Message-Id: <1348180978-20654-1-git-send-email-arnout@mind.be> To: buildroot@busybox.net Date: Fri, 21 Sep 2012 00:42:58 +0200 From: "Arnout Vandecappelle (Essensium/Mind)" List-Id: Discussion and development of buildroot When only libintl is requested from gettext, it is not necessary to build and install the tools in staging. Just run configure and make in the gettext-runtime directory. This _will_ install the gettext executable in the target. But that seems the correct thing to do, since it may be used by scripts. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/gettext/gettext.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk index 74f5218..1ddd98c 100644 --- a/package/gettext/gettext.mk +++ b/package/gettext/gettext.mk @@ -31,9 +31,7 @@ endif # When the gettext tools are not enabled in the configuration, we only # install libintl to the target. ifeq ($(BR2_PACKAGE_GETTEXT_TOOLS),) -define GETTEXT_INSTALL_TARGET_CMDS - cp -dpf $(STAGING_DIR)/usr/lib/libintl*.so* $(TARGET_DIR)/usr/lib/ -endef +GETTEXT_SUBDIR = gettext-runtime endif # GETTEXT_TOOLS = n $(eval $(autotools-package))