Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Fix build for apple m1 #40

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ package openssl

// #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/[email protected]/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
// #cgo darwin 386 CFLAGS: -I/usr/local/opt/[email protected]/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
// #cgo darwin 386 LDFLAGS: -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
// #cgo darwin arm64 CFLAGS: -I/opt/homebrew/opt/[email protected]/include -Wno-deprecated-declarations
// #cgo darwin arm64 LDFLAGS: -L/opt/homebrew/opt/[email protected]/lib -lssl -lcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
import "C"
6 changes: 4 additions & 2 deletions build_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ package openssl

// #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/[email protected]/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
// #cgo darwin 386 CFLAGS: -I/usr/local/opt/[email protected]/include -I/usr/local/opt/openssl/include -Wno-deprecated-declarations
// #cgo darwin 386 LDFLAGS: -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto
// #cgo darwin arm64 CFLAGS: -I/opt/homebrew/opt/[email protected]/include -Wno-deprecated-declarations
// #cgo darwin arm64 LDFLAGS: -L/opt/homebrew/opt/[email protected]/lib -lssl -lcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
import "C"