package/binutils: add optional support for zlib
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 21 Feb 2016 18:09:12 +0000 (19:09 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Feb 2016 20:30:17 +0000 (21:30 +0100)
commitd5646b51098cddce56e959defe90fe03fe2104fe
treee2b2f4460a7f019d328c586623d45fb34708f159
parent751e58f606ce5e40194ce929d713ccafb1328888
package/binutils: add optional support for zlib

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 <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/binutils/binutils.mk