From 9d8489b025e9d573e6db20fe53a5925a11bc55f5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 16 May 2021 08:28:36 +0000 Subject: [PATCH] net.openssl: add `-ldl -lpthread` for linux --- vlib/net/openssl/c.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlib/net/openssl/c.v b/vlib/net/openssl/c.v index e956931a45..06f35fd383 100644 --- a/vlib/net/openssl/c.v +++ b/vlib/net/openssl/c.v @@ -5,9 +5,10 @@ module openssl // openssl from libssl-dev. If there is no local openssl, // the next flag is harmless, since it will still use the // (older) system openssl. -#flag linux -I/usr/local/include/openssl -L/usr/local/lib +#flag linux -I/usr/local/include/openssl -L/usr/local/lib #flag windows -l libssl -l libcrypto -#flag -l ssl -l crypto +#flag -lssl -lcrypto +#flag linux -ldl -lpthread // MacPorts #flag darwin -I/opt/local/include #flag darwin -L/opt/local/lib