From patchwork Sun Feb 21 18:09:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 585858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id DCB02140322 for ; Mon, 22 Feb 2016 05:09:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D066295875; Sun, 21 Feb 2016 18:09:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a0KD+qDWoBye; Sun, 21 Feb 2016 18:09:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C9F4095822; Sun, 21 Feb 2016 18:09:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BF4BF1C13C0 for ; Sun, 21 Feb 2016 18:09:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BD1EB88F54 for ; Sun, 21 Feb 2016 18:09:16 +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 EhJmfc_mXtJ4 for ; Sun, 21 Feb 2016 18:09:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E4B1E88F4C for ; Sun, 21 Feb 2016 18:09:15 +0000 (UTC) Received: from fwd38.aul.t-online.de (fwd38.aul.t-online.de [172.20.26.138]) by mailout08.t-online.de (Postfix) with SMTP id 3A6C05D20CA for ; Sun, 21 Feb 2016 19:09:14 +0100 (CET) Received: from fli4l.lan.fli4l (XHMXsOZCohmsm8OBwOIuM17YgiEmpUvCRniZgUp+sSXkoBkxXmYsfgsjlG3hhuYgTc@[84.191.215.50]) by fwd38.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aXYRV-0zWYRU0; Sun, 21 Feb 2016 19:09:13 +0100 Received: from mahler.lan.fli4l ([192.168.1.1]:47006 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.86) (envelope-from ) id 1aXYRU-0003g9-SY; Sun, 21 Feb 2016 19:09:13 +0100 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 21 Feb 2016 19:09:12 +0100 Message-Id: <1456078152-18432-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.7.0 X-ID: XHMXsOZCohmsm8OBwOIuM17YgiEmpUvCRniZgUp+sSXkoBkxXmYsfgsjlG3hhuYgTc X-TOI-MSGID: b71cf577-436b-480c-9afb-110915c4c20a Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/binutils: add optional support for zlib 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" When zlib was compiled before, binutils will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libbfd-2.24.so | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libz.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] Apparantly the build system offers no support to control the dependency, --without-system-zlib with zlib installed still provides libbfd-2.24.so linked to libz.so.1. Signed-off-by: Bernd Kuhls --- package/binutils/binutils.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk index a96a9a8..0f75c1d 100644 --- a/package/binutils/binutils.mk +++ b/package/binutils/binutils.mk @@ -61,6 +61,10 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y) BINUTILS_DEPENDENCIES += busybox endif +ifeq ($(BR2_PACKAGE_ZLIB),y) +BINUTILS_DEPENDENCIES += zlib +endif + # "host" binutils should actually be "cross" # We just keep the convention of "host utility" for now HOST_BINUTILS_CONF_OPTS = \