lxc / go-lxc

Go bindings for liblxc
https://linuxcontainers.org/lxc
Other
430 stars 76 forks source link

static build: add libcrypto to pkg-config libs #145

Closed tych0 closed 3 years ago

tych0 commented 3 years ago

lxc only asks for -lcrypto (in both --static and dynamic modes):

~ pkg-config --static --libs lxc -L/usr/local/lib -llxc -lutil -lcap -lseccomp -lssl -lcrypto -lselinux

However, libcrypto wants some additional libraries in --static mode:

~ pkg-config --static --libs libcrypto -lcrypto -ldl -pthread ~ pkg-config --libs libcrypto -lcrypto

So let's add libcrypto's pkgconfig to the list of things we depend on for the static build.

Signed-off-by: Tycho Andersen tycho@tycho.pizza