mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
netsnmp: fix static linking with openssl
Fixes http://autobuild.buildroot.net/results/084/0845bde5d234bd00d23c7a1b7e18746882dcdde4/ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -40,6 +40,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|||||||
NETSNMP_DEPENDENCIES += openssl
|
NETSNMP_DEPENDENCIES += openssl
|
||||||
NETSNMP_CONF_OPT += \
|
NETSNMP_CONF_OPT += \
|
||||||
--with-openssl=$(STAGING_DIR)/usr/include/openssl
|
--with-openssl=$(STAGING_DIR)/usr/include/openssl
|
||||||
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
|
# openssl uses zlib, so we need to explicitly link with it when static
|
||||||
|
NETSNMP_CONF_ENV += LIBS=-lz
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
NETSNMP_CONF_OPT += --without-openssl
|
NETSNMP_CONF_OPT += --without-openssl
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user