From 796ff709ab7481fb582868878eeaa0fafe3a3346 Mon Sep 17 00:00:00 2001 From: Leon Chou Date: Fri, 17 Dec 2021 12:08:26 -0500 Subject: [PATCH] both cases now have library path --- CHANGES | 3 +++ src/config/discover.ml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index df85a06..ede0391 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/src/config/discover.ml b/src/config/discover.ml index 89f87c4..4eb08c3 100644 --- a/src/config/discover.ml +++ b/src/config/discover.ml @@ -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 =