php8: pass configure hints for snmp extension

The 'snmp' extension module uses net-snmp as library, but fails
to detect whether the library uses openssl when cross-compiling.
Pass the according autoconf variables as hint - net-snmp is not
using openssl at the moment as defined in the Makefile.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
Michael Heimpold
2025-04-27 16:18:02 +02:00
parent 3e34edcf3b
commit b523439c90

View File

@@ -396,6 +396,9 @@ endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php8-mod-snmp),)
CONFIGURE_ARGS+= --with-snmp=shared,"$(STAGING_DIR)/usr"
CONFIGURE_VARS+= \
ac_cv_have_decl_usmHMAC192SHA256AuthProtocol=no \
ac_cv_have_decl_usmHMAC384SHA512AuthProtocol=no
else
CONFIGURE_ARGS+= --without-snmp
endif