wolfSSL / wolfssh

wolfSSH is a small, fast, portable SSH implementation, including support for SCP and SFTP.
https://www.wolfssl.com
370 stars 88 forks source link

update libwolfssl search for older tools and static library #665

Closed JacobBarthelmeh closed 3 months ago

JacobBarthelmeh commented 6 months ago

ZD17497

Issue of autotools finding a static libwolfssl was reported on Ubuntu 20 and reproduced on Ubuntu 18. On newer Ubuntu versions (and autotools) such as Ubuntu 22 it is able to find the static library without this change.

JacobBarthelmeh commented 6 months ago

Steps to reproduce on Ubuntu 18 :

sudo rm -rf /usr/local/lib/libwolfssl*
cd wolfssl
./configure --enable-ssh --enable-static --disable-shared && make && sudo make install
cd ../wolfssh
./autogen.sh
./configure
JacobBarthelmeh commented 6 months ago

Possibly should be solved by adding -lpthread and -lm when doing the search for libwolfssl.a on older Ubuntu OS's.