From 0687bde8e02aecab89dcc0c9d220f43f3a2d58aa Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sun, 23 Feb 2020 07:53:15 +0300 Subject: [PATCH] discover.ml: don't add flags for missing libraries This patch is a variant of the one in https://github.com/ocsigen/lwt/issues/761#issuecomment-589948143 See #760, #761. --- src/unix/config/discover.ml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/unix/config/discover.ml b/src/unix/config/discover.ml index 2a9f1a904e..924612e780 100644 --- a/src/unix/config/discover.ml +++ b/src/unix/config/discover.ml @@ -255,7 +255,7 @@ struct ["-I" ^ (path // "include")] ["-L" ^ (path // "lib"); "-l" ^ library] with Not_found -> - extend [] ["-l" ^ library] + () let ws2_32_lib context = if Configurator.ocaml_config_var_exn context "os_type" = "Win32" then @@ -398,8 +398,7 @@ struct match result.stdout, result.exit_code with | "true\n", 0 -> true | "false\n", 0 -> false - | _, _ -> - failwith "OPAM exited with an error code, or isn't even installed." + | _, _ -> failwith "opam exited with an error code, or isn't installed." in let detect_esy_wants_libev () =