/usr/bin/ld: minerd-heavy.o: undefined reference to symbol 'SHA256_Init@@OPENSSL_1.0.0'
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line
How hard can it be? -lcrypto
EDIT: you compiling as root?!? hopefully in virtual machine?
Yes, it's a VM.