package/links: add optional support for libevent

When libevent was compiled before, links will use it as optional
dependency:

$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/links | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [liblzma.so.5]
 0x00000001 (NEEDED)                     Shared library: [libbz2.so.1.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libevent-2.0.so.5]
 0x00000001 (NEEDED)                     Shared library: [libc.so.1]

(xz support will be added with the next patch of this series)

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2016-02-10 21:58:41 +01:00 committed by Thomas Petazzoni
parent 829f21ca83
commit ec1c53afd3

View File

@ -39,6 +39,10 @@ ifeq ($(BR2_PACKAGE_BZIP2),y)
LINKS_DEPENDENCIES += bzip2
endif
ifeq ($(BR2_PACKAGE_LIBEVENT),y)
LINKS_DEPENDENCIES += libevent
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LINKS_DEPENDENCIES += openssl
endif