Ar71xx build fails OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa

Does anyone face the same issue for the latest master archer c7 v2 target? I have raised an issue, but I am wondering why there is nothing similar posted yet.

this is the same as #6993

Building the latest master for ar71xx_generic_DEVICE_archer-c7-v2 on Ubuntu 18.04.1
with config from https://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/config.seed
fails with error

checking for ECDSA_sign... no
configure: error: OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa
Makefile:193: recipe for target '/home/frood/Documents/git/OwrtLEDE/openwrt/build_dir/target-mips_24kc_musl/unbound-1.8.0/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[3]: *** [/home/frood/Documents/git/OwrtLEDE/openwrt/build_dir/target-mips_24kc_musl/unbound-1.8.0/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/frood/Documents/git/OwrtLEDE/openwrt/feeds/packages/net/unbound'

(Build steps https://openwrt.org/docs/guide-developer/quickstart-build-images)

Same on imx6-generic target. To work around: turn off kmod-openvswitch* in "Kernel Modules > Network Support" if it's appropriate for you.

Or you can select Unbound to be built, this is a known issue but no workaround is known

Try this patch:

--- a/feeds/packages/net/unbound/Makefile
+++ b/feeds/packages/net/unbound/Makefile
@@ -115,6 +115,7 @@ CONFIGURE_ARGS += \
 	--enable-allsymbols \
 	--enable-tfo-client \
 	--enable-tfo-server \
+	$(if $(CONFIG_OPENSSL_WITH_EC),--enable-ecdsa,--disable-ecdsa) \
 	--with-libexpat="$(STAGING_DIR)/usr" \
 	--with-ssl="$(STAGING_DIR)/usr" \
 	--with-user=unbound \