Skip to content

Commit

Permalink
add flags for preferring openssl from the ports collection
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Nov 17, 2023
1 parent c3cf9ee commit 3e12a31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vlib/net/openssl/openssl.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module openssl
// use the (older) system openssl.
#flag linux -I/usr/local/include/openssl
#flag linux -L/usr/local/lib
// On FreeBSD, prefer openssl from the ports collection, because
// it is much more likely for it to be newer, than the system
// openssl.
#flag freebsd -I/usr/local/include
#flag freebsd -L/usr/local/lib
$if $pkgconfig('openssl') {
#pkgconfig --cflags --libs openssl
} $else {
Expand Down

0 comments on commit 3e12a31

Please sign in to comment.