The attached patch fixes net-snmp to be able to use --as-needed ldflag with it (and with packages depending on it). It just add -lcrypto to the linking libraries for libnetsnmp.so as that uses functions from that library but relies on the final executable to link to it. Thanks, Diego
Created attachment 76320 [details, diff] net-snmp-5.2.2-asneeded.patch
In cvs.