[ntp:questions] How to build ntp wih static link to openssl

Joe Smithian joe.smithian at gmail.com
Wed Jun 1 20:59:50 UTC 2011


I tried to build ntp with static link to openssl. The build was fine but
openssl was not linked
and as a result crypto operations were not supported.

I'd appreciate your comment on what's wrong in the these commands and how to
fix it.

Platform: Redhat 7.2 Linux
openssl  0.9.8.n

I manually changed   LCRYPTO=-lcrypto to
LCRYPTO=/home/openssl/lib/libcrypto.a in the configure file.
export LIBS=/home/openssl/lib/libcrypto.a

make clean
./configure  --with-crypto \
         --with-openssl-libdir=/home/openssl/lib  \
             --with-openssl-incdir=/home/openssl/include \
         --enable-autokey \

make  LD_FLAGS=-static
make install

openssl 0.9.8.n has already been compiled and librypto.a was present in

Thanks for your help.


More information about the questions mailing list