iperf3: fix failing build of libiperf3 with ssl variant
Maintainer: @nbd168 Compile tested: aarch64_cortex-a53 (BananaPi R64) + x86/64 (APU2C4), OpenWrt snapshot Run tested: aarch64_cortex-a53 (BananaPi R64) + x86/64 (APU2C4), OpenWrt snapshot
Description:
In my PR #22516 and in the follow-up issue #22566 I opened, I already described the issue itself.
TLDR: Building libiperf3 fails when iperf3-ssl is selected because iperf3-ssl adds --disable-shared to CONFIGURE_ARGS which prevents generating libiperf.so.* file, which is obviously necessary for libiperf3.
My proposed changes fix the issue and in addition also allow to have a shared libiperf3 with SSL support, which afaik was not possible before. Instead of having separate package variants for with/without SSL support, let's just do that with a config option that can be chosen. Any objections to this?