For me, adding the following to LDFLAGS worked: LDFLAGS="-L/usr/lib -lssl -lcrypto -lz" The make check doesn't report any failure. and the resulting libupnp.so reports the following: ldd /usr/lib/libupnp.so linux-vdso.so.1 (0x00007ffff07c5000) libixml.so.10 => /usr/lib/libixml.so.10 (0x00007f5746afe000) libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f5746a69000) libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f5746785000) libz.so.1 => /lib/libz.so.1 (0x00007f5746768000) libpthread.so.0 =>...