[cmake-2.8.11] darwin executables not linked with @rpath

David Fang fang at csl.cornell.edu
Fri Mar 7 15:06:31 PST 2014

 	When building llvm with cmake+shared on darwin11, using cmake, I was not getting properly linked executables.
(Just plain: cmake ../llvm.git -DBUILD_SHARED_LIBS=ON )


Basically, LC_RPATH was missing, so llvm-tblgen failed to load the dylibs.

Rafael suggested I try cmake 2.8.12, and that worked.

Is this just a bug in 2.8.11? or was there a different way of doing 
things?  Do we already have 2.8.12 as a minimum version of cmake?


David Fang

More information about the llvm-commits mailing list