From patchwork Tue Feb 24 10:53:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 442912 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3B75A140157 for ; Tue, 24 Feb 2015 21:53:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 26A20A2E88; Tue, 24 Feb 2015 10:53:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WaG04rE6-dYG; Tue, 24 Feb 2015 10:53:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D7DA1A2EA4; Tue, 24 Feb 2015 10:53:29 +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 EFD7C1BFF13 for ; Tue, 24 Feb 2015 10:53:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EAFC88C7F6 for ; Tue, 24 Feb 2015 10:53:27 +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 hGwBJetMnP30 for ; Tue, 24 Feb 2015 10:53:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 670FA8C799 for ; Tue, 24 Feb 2015 10:53:27 +0000 (UTC) Received: by pdjy10 with SMTP id y10so32590367pdj.6 for ; Tue, 24 Feb 2015 02:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=lS//ajV8UVrKHOFWEc7+UXQ1/GWvMl8M0HmnCQOUC4U=; b=GVFOrt5FQcgZ1WK4+Zd1nCFFOJdee5hMIiwy2rzxB7ENoro4DXaPFjzxHtiedUDZNP znJpE5wfiL7gJRSV4aNH3OJvc5Qtrj0+9j3UUrokS1KEUxcFmQWJKX2y5Uimif6I14sl oCABCwmqcA2fIbidxG9xRC5Zm5vU9Q/RM8sVX2aEQGewKdtozc3TiAm1M3wnNubMZfzE LvGcc1vQhqhiFYeuSlygdUOp0QOY2/JwxFAqOMJw7um2F4TWhB/uUgUCf8x6hYDluz4a 2btElDquaSKabxHjO9anUHGjJToovdwUrtlEJEaLN1cnYEWz90RLE2jlKhj0hLzY63Bk oE5g== X-Received: by 10.66.65.169 with SMTP id y9mr27993794pas.60.1424775207149; Tue, 24 Feb 2015 02:53:27 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id 2sm11562011pdp.0.2015.02.24.02.53.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 02:53:26 -0800 (PST) From: Fabio Porcedda X-Google-Original-From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 24 Feb 2015 11:53:17 +0100 Message-Id: <1424775198-1787-1-git-send-email-Fabio.Porcedda@gmail.com> X-Mailer: git-send-email 2.3.0 Cc: Axel Lin Subject: [Buildroot] [PATCH master 1/2] popt: add to the "popt.pc" the dependency libintl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" From: Fabio Porcedda This change permits through pkg-config to retrive even the depenencies that is useful for a static linking. Signed-off-by: Fabio Porcedda --- package/popt/popt.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/popt/popt.mk b/package/popt/popt.mk index 8ce64d4..e6d51c0 100644 --- a/package/popt/popt.mk +++ b/package/popt/popt.mk @@ -15,10 +15,19 @@ POPT_GETTEXTIZE = YES POPT_CONF_ENV = ac_cv_va_copy=yes +define POPT_POST_PATCH_FIX_PC + $(SED) "s/Libs:/Libs.private: -lintl\nLibs:/" $(@D)/popt.pc.in +endef + ifeq ($(BR2_PACKAGE_LIBICONV),y) POPT_CONF_ENV += am_cv_lib_iconv=yes POPT_CONF_OPTS += --with-libiconv-prefix=$(STAGING_DIR)/usr endif +ifeq ($(BR2_PACKAGE_GETTEXT),y) + POPT_DEPENDENCIES += gettext + POPT_POST_PATCH_HOOKS += POPT_POST_PATCH_FIX_PC +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))