You are not logged in.
Hi all guys,
I've a problem to compile statically a program that links openssl library :
gcc -g -m32 -static -static-libgcc -static-libstdc++ -o hmac-sha1-bios-x86 ../main.c -lcrypto -lm
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:10: recipe for target 'hmac-sha1-bios-x86' failed
make: *** [hmac-sha1-bios-x86] Error 1Has anyone any idea ?
Offline
Didn't test myself, but try rebuilding openssl with "options=(staticlibs)" in the PKGBUILD, and then try building your program again.
Last edited by byte (2015-09-15 11:51:51)
1000
Offline