Libssh: could not resolve symbol

I got back to experimenting with libssh on Haiku, which I had left aside for a while. My little test application compiles and links against libssh without error.
But when I start the app I get the following error:

runtime_loader: /boot/system/lib/libssh.so.4.7.2: Could not resolve symbol ‘__stack_chk_guard’
resolve symbol “__stack_chk_guard” returned: -2147478780
runtime_loader: /boot/system/lib/libssh.so.4.7.2: Troubles relocating: Symbol not found

Am I doing something wrong or is this an error in the libssh package? I’m on Haiku nightly x86_64.

Additional info:
I’m using the makefile engine and the LIBS line looks like this:
LIBS = $(STDCPPLIBS) be root translation localestub ssh network bnetapi

Appears the libssh package is trying to use stack guards, which are indeed broken for some reason.

Was the patch to enable support dropped from gcc when updating to gcc8?

@PulkoMandy: I also tested compiling and running my app on a different Haiku VM that is still on gcc7 (it’s a hrev from early April I think), and the error is exactly the same.