diff --git a/build.go b/build.go index 5fccc021..991029de 100644 --- a/build.go +++ b/build.go @@ -12,13 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !openssl_static // +build !openssl_static package openssl -// #cgo linux windows pkg-config: 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 +// #cgo darwin linux windows pkg-config: libssl libcrypto +// #cgo darwin linux CFLAGS: -Wno-deprecated-declarations // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN import "C" diff --git a/build_static.go b/build_static.go index c84427bc..d240c75e 100644 --- a/build_static.go +++ b/build_static.go @@ -12,13 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build openssl_static // +build openssl_static package openssl -// #cgo linux windows 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 +// #cgo darwin linux windows pkg-config: --static libssl libcrypto +// #cgo darwin linux CFLAGS: -Wno-deprecated-declarations // #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN import "C"