Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using -lpthread, setting the library search path is not required.
When using -lpthread, setting the library search path is not required and results in general dysfunction for later library lookups. For instance, on OS X, Apple ships a very old version of libffi but most users install a modern libffi via homebrew. Due to a longstanding OCaml compiler front-end bug (mantis report forthcoming), the ordering of cmxa and -cclib arguments is not preserved. This results in the OS-supplied libffi being selected instead of the homebrew installed libffi despite downstream developers' best efforts. Either pthread will be in the default library search path in a system directory with low precedence (e.g. /usr/lib) or the developer can explicitly control the library search path order downstream to correctly determine precedence between multiple shared library dependencies. Given this situation, I believe it is incorrect to ever specify -L flags in cmxa files. I have not modified the libev dependency lookup but will if desired. Maintainer: Resolves #215.
- Loading branch information