diff --git a/build.go b/build.go index 9b813b1c..d3f19d82 100644 --- a/build.go +++ b/build.go @@ -16,8 +16,8 @@ package openssl -// #cgo linux windows freebsd openbsd pkg-config: libssl libcrypto -// #cgo linux freebsd openbsd CFLAGS: -Wno-deprecated-declarations +// #cgo linux windows freebsd openbsd solaris pkg-config: libssl libcrypto +// #cgo linux freebsd openbsd solaris 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 84f6abeb..69fad0a4 100644 --- a/build_static.go +++ b/build_static.go @@ -16,8 +16,8 @@ package openssl -// #cgo linux windows freebsd openbsd pkg-config: --static libssl libcrypto -// #cgo linux freebsd openbsd CFLAGS: -Wno-deprecated-declarations +// #cgo linux windows freebsd openbsd solaris pkg-config: --static libssl libcrypto +// #cgo linux freebsd openbsd solaris 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