[LLVMdev] rpaths in llvm binaries

Larson, Timothy E. TELarson at west.com
Fri Nov 27 18:01:22 PST 2009


I didn't get any response, so asking again.

> > Are you using cmake for building LLVM?
> >
> > If the answer is yes, please ask on the cmake mailing list.
> >
> > Usually cmake sets the RPATH when building LLVM as shared objects.
> But
> > on my Linux box it does not set RPATH when building LLVM as static
> > libraries.
> 
> I do not have cmake installed - and when packaging for NetBSD (IIRC)
> you need to explicitly tell it that cmake is used, which I haven't done
> - so I'd have to answer "no".
> 
> I do see LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
> in autoconf/configure.ac, and hardcode_libdir_flag_spec'${wl}-rpath
> ${wl}$libdir' and hardcode_libdir_flag_spec_ld='-rpath $libdir' in
> configure, though.  Do these need to be there?

It seems to be explicitly asking for RPATHs, contrary to Oscar's experience.  Am I misinterpreting this?  Does RPATH really need to be set for this to work correctly?  Why am I getting RPATH set to the build directory?

Thanks,
Tim




More information about the llvm-dev mailing list