From 7e0f41e6a7a458d35b450a4aa36463a422c1db96 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 26 Jul 2019 16:31:23 -0700 Subject: [PATCH] feat: add freebsd support --- build.go | 4 ++-- build_static.go | 2 +- init_posix.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.go b/build.go index 5fccc02..75fc27e 100644 --- a/build.go +++ b/build.go @@ -16,8 +16,8 @@ package openssl -// #cgo linux windows pkg-config: libssl libcrypto -// #cgo linux CFLAGS: -Wno-deprecated-declarations +// #cgo linux windows freebsd pkg-config: libssl libcrypto +// #cgo linux freebsd CFLAGS: -Wno-deprecated-declarations // #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations // #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN diff --git a/build_static.go b/build_static.go index c84427b..ceaf23a 100644 --- a/build_static.go +++ b/build_static.go @@ -16,7 +16,7 @@ package openssl -// #cgo linux windows pkg-config: --static libssl libcrypto +// #cgo linux windows freebsd pkg-config: --static libssl libcrypto // #cgo linux CFLAGS: -Wno-deprecated-declarations // #cgo darwin CFLAGS: -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations // #cgo darwin LDFLAGS: -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto diff --git a/init_posix.go b/init_posix.go index 2da7f95..cbc9814 100644 --- a/init_posix.go +++ b/init_posix.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build linux darwin solaris +// +build linux darwin solaris freebsd // +build !windows package openssl