From patchwork Sun Jan 6 15:22:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 209774 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AE3282C0080 for ; Mon, 7 Jan 2013 02:25:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6A0DC27527; Sun, 6 Jan 2013 15:25:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0UGKMR1BbUuy; Sun, 6 Jan 2013 15:25:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9CF7730ECC; Sun, 6 Jan 2013 15:24:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1BB7D8F753 for ; Sun, 6 Jan 2013 15:24:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E444826970 for ; Sun, 6 Jan 2013 15:23:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ko4BO-q8fdwa for ; Sun, 6 Jan 2013 15:23:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [94.23.32.191]) by silver.osuosl.org (Postfix) with ESMTP id 35D8730ED2 for ; Sun, 6 Jan 2013 15:23:24 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 70BBC17D; Sun, 6 Jan 2013 16:23:24 +0100 (CET) Received: from localhost (humanoidz.org [82.247.183.72]) by mail.free-electrons.com (Postfix) with ESMTPSA id 697CD10F for ; Sun, 6 Jan 2013 16:23:23 +0100 (CET) From: Thomas Petazzoni To: buildroot@busybox.net Date: Sun, 6 Jan 2013 16:22:52 +0100 Message-Id: <8ca2d6bdaaafedc9dc20c5e38c91d3b6a7b6faa0.1357485747.git.thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Subject: [Buildroot] [PATCH 12/15] elfutils: towards uClibc support: gettext 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net elfutils is annoying: it needs gettext even if locale support is disabled... Heavily based from work done by Stefan Fröberg, but with many further modifications by Thomas Petazzoni. Signed-off-by: Thomas Petazzoni --- package/elfutils/Config.in | 1 + package/elfutils/elfutils.mk | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/package/elfutils/Config.in b/package/elfutils/Config.in index 5ec4ca9..78d02a5 100644 --- a/package/elfutils/Config.in +++ b/package/elfutils/Config.in @@ -12,6 +12,7 @@ config BR2_PACKAGE_ELFUTILS BR2_TOOLCHAIN_BUILDROOT || \ BR2_TOOLCHAIN_CTNG_uClibc || \ BR2_TOOLCHAIN_EXTERNAL_UCLIBC + select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT depends on BR2_LARGEFILE help Libraries/utilities to handle ELF objects (drop in diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index 9f9de52..39407db 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -25,6 +25,17 @@ ELFUTILS_CONF_ENV += \ CPPFLAGS="$(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS))" endif +ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) + +# Unconditionnally requires gettext. +ifeq ($(BR2_NEEDS_GETTEXT),y) +ELFUTILS_DEPENDENCIES += gettext +ELFUTILS_LDFLAGS += -lintl +endif + +ELFUTILS_CONF_ENV += \ + LDFLAGS="$(ELFUTILS_LDFLAGS)" + ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y) ELFUTILS_DEPENDENCIES += argp-standalone endif