BIND 9.16.11 build fails with static OpenSSL library
Building BIND 9.16.11 with a static version of OpenSSL fails. This worked previously with BIND 9.16.10. The problem appears to be due to the ordering of SSL libraries in several of the Makefiles. For example, this line in the 'lib/samples/Makefile':
OPENSSL_LIBS = -L/opt/work6/tmp/openssl/lib -lcrypto -lssl
In BIND 9.16.10, this line read:
OPENSSL_LIBS = -L/opt/incontrol/dns/openssl/lib -lcrypto
The addition of '-lssl' must be before '-lcrypto'. However, setting OPENSSL_LIBS environment variable prior to running configure does not solve the problem because OPENSSL_LIBS does not appear to be honored for this setting.
Please find the attached config and build logs.