From a0c8fa5bbc0a527cdd309072544e30932efb421b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 13 Aug 2019 09:56:18 +0300 Subject: [PATCH] http openssl: on linux, prefer newer openssl installations when available --- vlib/http/backend_nix.v | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vlib/http/backend_nix.v b/vlib/http/backend_nix.v index 089cbf2127..ab1aad4496 100644 --- a/vlib/http/backend_nix.v +++ b/vlib/http/backend_nix.v @@ -6,6 +6,13 @@ module http import strings +// On linux, prefer a localy build openssl, because it is +// much more likely for it to be newer, than the system +// 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 windows -I @VROOT/thirdparty/openssl/include #flag darwin -I @VROOT/thirdparty/openssl/include #flag -l ssl -l crypto