We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9c785c commit 967198eCopy full SHA for 967198e
myocamlbuild.ml
@@ -732,13 +732,13 @@ let () =
732
let osqlite3_cflags =
733
let cmd = "pkg-config --cflags sqlite3" in
734
match read_lines_from_cmd ~max_lines:1 cmd with
735
- | [cflags] -> S (ocamlify ~ocaml_flag:"-ccopt" cflags)
+ | [cflags] when cflags <> "" -> S (ocamlify ~ocaml_flag:"-ccopt" cflags)
736
| _ -> failwith "pkg-config failed for cflags"
737
in
738
let sqlite3_clibs, osqlite3_clibs =
739
let cmd = "pkg-config --libs sqlite3" in
740
741
- | [libs] ->
+ | [libs] when libs <> "" ->
742
S (split_flags libs), S (ocamlify ~ocaml_flag:"-cclib" libs)
743
| _ -> failwith "pkg-config failed for libs"
744
0 commit comments