diff --git a/src/config/discover.ml b/src/config/discover.ml index f1b032f..89f87c4 100644 --- a/src/config/discover.ml +++ b/src/config/discover.ml @@ -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 = diff --git a/src/dune b/src/dune index 68ec0f6..d4cc2e1 100644 --- a/src/dune +++ b/src/dune @@ -3,7 +3,7 @@ (public_name mysql8) (foreign_stubs (language c) - (flags + (flags (:include c_flags.sexp))) (c_library_flags (:include libs.sexp)))