From patchwork Thu Sep 20 22:42:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 185519 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id C4FFE2C007E for ; Fri, 21 Sep 2012 08:43:14 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E16CF8D50E; Thu, 20 Sep 2012 22:43:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lcroMAJiKjaI; Thu, 20 Sep 2012 22:43:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AAA318D498; Thu, 20 Sep 2012 22:43:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 194358F75E for ; Thu, 20 Sep 2012 22:43:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6E6D98D467 for ; Thu, 20 Sep 2012 22:43:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id twvohHQSpV0W for ; Thu, 20 Sep 2012 22:43:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from viper.mind.be (132.79-246-81.adsl-static.isp.belgacom.be [81.246.79.132]) by whitealder.osuosl.org (Postfix) with ESMTPS id 940778D473 for ; Thu, 20 Sep 2012 22:43:05 +0000 (UTC) Received: from [172.16.2.6] (helo=vandecaa-laptop) by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1TEpSX-0000PW-SJ; Fri, 21 Sep 2012 00:43:02 +0200 Received: from arnout by vandecaa-laptop with local (Exim 4.80) (envelope-from ) id 1TEpSW-0005O6-Bs; Fri, 21 Sep 2012 00:43:00 +0200 From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@busybox.net Date: Fri, 21 Sep 2012 00:42:58 +0200 Message-Id: <1348180978-20654-1-git-send-email-arnout@mind.be> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH] gettext: don't build tools if they won't be installed X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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))