Skip to content

Commit

Permalink
Merge pull request #5 from skolemlabs/fix/brew-openSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
avidhacker authored Dec 17, 2021
2 parents 3d6d252 + 8659b67 commit 95ce7a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/config/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ let mysql_config_path =

let c_flags =
match execute_with_output (mysql_config_path ^ " --cflags") with
| Some str -> (String.split_on_char ' ' str) @ ["-fPIC"]
| Some str ->
String.split_on_char ' ' str @ [ "-fPIC"; "-L/usr/local/opt/openssl/lib/" ]
| None -> []

let libs =
Expand Down
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(public_name mysql8)
(foreign_stubs
(language c)
(flags
(flags
(:include c_flags.sexp)))
(c_library_flags
(:include libs.sexp)))
Expand Down

0 comments on commit 95ce7a6

Please sign in to comment.