net.openssl: fix compilation of vpm.v on FreeBSD

pull/12762/head
Delyan Angelov 2021-12-08 10:50:24 +02:00
parent e433badcb8
commit b1622c74b9
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 10 additions and 5 deletions

View File

@ -3,10 +3,14 @@ module openssl
// On Linux, prefer a localy built 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.
#pkgconfig openssl
// the next #pkgconfig flag is harmless, since it will still
// use the (older) system openssl.
#flag linux -I/usr/local/include/openssl
#flag linux -L/usr/local/lib
$if $pkgconfig('openssl') {
#pkgconfig openssl
}
#flag windows -l libssl -l libcrypto
#flag -lssl -lcrypto
#flag linux -ldl -lpthread

View File

@ -13,9 +13,10 @@ const (
'/usr/lib64/pkgconfig',
'/usr/lib/pkgconfig',
'/usr/share/pkgconfig',
'/opt/homebrew/lib/pkgconfig',
'/opt/homebrew/lib/pkgconfig', // Brew on macOS
'/usr/local/libdata/pkgconfig', // FreeBSD
]
version = '0.3.1'
version = '0.3.2'
)
pub struct Options {