[PATCH 1/1] build/cmake: Fix CMP0023 warning with libffi

Brad King brad.king at kitware.com
Thu Sep 4 07:50:24 PDT 2014

On 09/04/2014 08:41 AM, Dan Liew wrote:
> Wouldn't that break linking against the library? If libLLVMInterpreter
> was built as a shared library and libffi was a PRIVATE dependency
> (let's assume that libffi is shared as well) then when building an
> executable that links against the LLVMInterpreter library, linking
> will fail because the PRIVATE dependency on libffi is not propagated
> to the executable target.

If the executable's object files make no direct references to the
symbols in libffi then it does not need to link to that library.
Even linking with --no-undefined should work.  The dynamic loader
will take care of the transitive dependencies at runtime.


More information about the llvm-commits mailing list