]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libevent: drop openssl static linking workaround
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 9 Feb 2017 10:29:52 +0000 (11:29 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 9 Feb 2017 14:02:12 +0000 (15:02 +0100)
Commit f29bb169cf (libevent: fix openssl detection when statically linking)
forced libevent to link against zlib when statically linking against openssl
as the configure script failed to do this.

Since then libevent has been bumped, and it now uses pkg-config to figure
out how to link with openssl, so ensure pkg-config is available and drop the
now-unneeded workaround.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libevent/libevent.mk

index 128bb2ac71eb33eacb3bff4713f8bea961610989..5458ce316a9c4d036cdfa76c5efb94fed8390899 100644 (file)
@@ -24,13 +24,8 @@ LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
 endif
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBEVENT_DEPENDENCIES += openssl
+LIBEVENT_DEPENDENCIES += host-pkgconf openssl
 LIBEVENT_CONF_OPTS += --enable-openssl
-# openssl needs zlib but configure forgets to link against it causing
-# openssl detection to fail
-ifeq ($(BR2_STATIC_LIBS),y)
-LIBEVENT_CONF_ENV += OPENSSL_LIBADD='-lz'
-endif
 else
 LIBEVENT_CONF_OPTS += --disable-openssl
 endif