Skip to content
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
7 changes: 3 additions & 4 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 3 additions & 4 deletions build_static.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"