diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk index 6bb6fe251f..4830c00e85 100644 --- a/package/netsnmp/netsnmp.mk +++ b/package/netsnmp/netsnmp.mk @@ -40,6 +40,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y) NETSNMP_DEPENDENCIES += openssl NETSNMP_CONF_OPT += \ --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 NETSNMP_CONF_OPT += --without-openssl endif