Skip to content

Commit

Permalink
Merge pull request #1429 from n0izn0iz/bazel-ssl-macos
Browse files Browse the repository at this point in the history
fix(bazel): openssl linking on macos
  • Loading branch information
n0izn0iz committed Oct 15, 2019
2 parents bf4e808 + 58d4e14 commit 32923b2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bazel/com_github_spacemonkeygo_openssl.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,21 @@ go_library(
"tickets.go",
],
cgo = True,
clinkopts = [
clinkopts = select({
"@bazel_tools//src/conditions:darwin": [
"-L/usr/local/opt/openssl/lib"
],
"//conditions:default": [],
}) + [
"-lssl",
"-lcrypto",
],
copts = select({
"@bazel_tools//src/conditions:darwin": [
"-I/usr/local/opt/openssl/include"
],
"//conditions:default": [],
}),
importmap = "berty.tech/go/vendor/github.com/spacemonkeygo/openssl",
importpath = "github.com/spacemonkeygo/openssl",
visibility = ["//visibility:public"],
Expand Down

0 comments on commit 32923b2

Please sign in to comment.