Hello,
My command, On Ubuntu Xenial fully updated, is
./configure --sysconfdir=/etc/monit --enable-optimized --prefix=/usr --with-ssl-static=/usr/lib/x86_64-linux-gnu
which generate:
Linker flags: -lpam -lz -lpthread -lcrypt -lresolv -lnsl /usr/lib/x86_64-linux-gnu/libssl.a /usr/lib/x86_64-linux-gnu/libcrypto.a -L/usr/lib/x86_64-linux-gnu
Unfortunately, it fails due to the linking of "dl" as flag -ldl is missing
If I had this flag manually in the generated Makefile for line setting variable LIBS at the end of the line only, then running the make command is successful.
I saw in the configure script that for some OS (like darwin/OSX), you perform some check to add this flag automatically.
I tried to find a way to add it the the "Linker flags" through the parameter of the configure script but didn't manage to do it.
Any clue ?