Skip to content

Commit

Permalink
Merge pull request #6 from skolemlabs/fix/brew-openSSL
Browse files Browse the repository at this point in the history
moved library path to library case, not cflags case
  • Loading branch information
avidhacker authored Dec 17, 2021
2 parents 95ce7a6 + 796ff70 commit b0e9f33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Fri Dec 17 2021 (1.2.5)
* Add library path fixes for brew for openssl library linking

* Tue Nov 12 2019 (1.2.4)
* Auto-initialize library in Mysql.escape

Expand Down
4 changes: 2 additions & 2 deletions src/config/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ let mysql_config_path =
let c_flags =
match execute_with_output (mysql_config_path ^ " --cflags") with
| Some str ->
String.split_on_char ' ' str @ [ "-fPIC"; "-L/usr/local/opt/openssl/lib/" ]
String.split_on_char ' ' str @ [ "-fPIC" ]
| None -> []

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

let replace_exact rep _with str =
Expand Down

0 comments on commit b0e9f33

Please sign in to comment.