From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 0761060745 for ; Sun, 31 Jan 2016 13:21:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u0VDJBs3015684; Sun, 31 Jan 2016 13:21:09 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4UNCLK7KpE1z; Sun, 31 Jan 2016 13:21:09 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u0VDL6Aa015725 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 31 Jan 2016 13:21:07 GMT Message-ID: <1454246466.27087.12.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Sun, 31 Jan 2016 13:21:06 +0000 X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Subject: [PATCH] binutils: Use target provided zlib X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 13:21:11 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit When using -fpic (security related cflags), qemux6-64 builds would fail due to linker symbol errors. This was due to the internal zlib that binutils was using. Add the switch to tell it to use the target system zlib which is already in DEPENDS. That zlib is already compiled with the correct flags. Signed-off-by: Richard Purdie diff --git a/meta/recipes-devtools/binutils/binutils_2.26.bb b/meta/recipes-devtools/binutils/binutils_2.26.bb index 6f42671..b70ffbf 100644 --- a/meta/recipes-devtools/binutils/binutils_2.26.bb +++ b/meta/recipes-devtools/binutils/binutils_2.26.bb @@ -7,6 +7,7 @@ EXTRA_OECONF += "--with-sysroot=/ \ --enable-install-libbfd \ --enable-install-libiberty \ --enable-shared \ + --with-system-zlib \ " EXTRA_OECONF_class-native = "--enable-targets=all \