diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-02-21 19:09:12 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-21 21:30:17 +0100 |
commit | d5646b51098cddce56e959defe90fe03fe2104fe (patch) | |
tree | e2b2f4460a7f019d328c586623d45fb34708f159 | |
parent | 751e58f606ce5e40194ce929d713ccafb1328888 (diff) | |
download | buildroot-d5646b51098cddce56e959defe90fe03fe2104fe.tar.gz buildroot-d5646b51098cddce56e959defe90fe03fe2104fe.zip |
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>
-rw-r--r-- | package/binutils/binutils.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk index a96a9a8acc..0f75c1d98d 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 = \ |