libressl/portable

FreeBSD and LibreSSL static

Closed this issue · 1 comments

koue commented

Hello folks,

I'm porting httpd from OpenBSD to FreeBSD. I use static libraries for LibreSSL to avoid conflicts with OpenSSL. No problems during compilation. During runtime however if I use static LibreSSL version > 3.5.3 httpd fails to configure TLS. When I use shared libraries httpd TLS works as expected. I did test with 3.5.x, 3.6.x, 3.7.x and 3.8.x. Latest working version with static libraries is 3.5.3. I do compile LibreSSL from source, no CFLAGS, no LDFLAGS, no patches, ./configure && make only. If it matters I'm using FreeBSD 13.2 amd64.
I'm looking for any guidance or ideas how to do the troubleshooting.

Thanks,
Nikola

Add -pthread to LDFLAGS looks like solve the issue.