The setup.sh script uses llvm-config --ldflags to populate the c_library_flags fields of the generated dune files. These flags then make their way eventually to ocamlmklib.
It is a minor point, but llvm-config --ldflags can include flags such as -Wl,-search_paths_first -Wl,-headerpad_max_install_names which ocamlmklib complains about:
The
setup.sh
script usesllvm-config --ldflags
to populate thec_library_flags
fields of the generated dune files. These flags then make their way eventually toocamlmklib
.It is a minor point, but
llvm-config --ldflags
can include flags such as-Wl,-search_paths_first -Wl,-headerpad_max_install_names
whichocamlmklib
complains about:Should the result of
llvm-config --ldflags
be filtered to keep only the flags thatocamlmklib
understands?