I've setup a slackware VM from Windows to try building packages for OpenWRT. Since I'm on Kamikaze 7.09 with kernel 2.4, I've downloaded OpenWrt-SDK-brcm-2.4-for-Linux-i686.tar.bz2. I've checked out from svn just the files for bind, the package I wanted to build. Then just typed a "make V=99". It fails here:

checking for OpenSSL library... using OpenSSL from /root/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/usr/lib and /root/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/usr/include
checking whether linking with OpenSSL works... assuming it does work on target platform
checking whether linking with OpenSSL requires -ldl... unknown
configure: error: OpenSSL has unsupported dynamic loading

Is it because I'm using the stripped down buildroot and have checked out only the bind files? Or because of differences between the two toolchains (the current one and the old one that I'm using) ?