From 2690e0165bc0b0ac8181ffa679860b4487928ba6 Mon Sep 17 00:00:00 2001 From: Zach Baylin Date: Sun, 5 Dec 2021 17:31:45 +0100 Subject: [PATCH] Discover: add -fPIC to cflags --- src/config/discover.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/discover.ml b/src/config/discover.ml index 90c3f3d..f1b032f 100644 --- a/src/config/discover.ml +++ b/src/config/discover.ml @@ -34,7 +34,7 @@ let mysql_config_path = let c_flags = match execute_with_output (mysql_config_path ^ " --cflags") with - | Some str -> String.split_on_char ' ' str + | Some str -> (String.split_on_char ' ' str) @ ["-fPIC"] | None -> [] let libs =