[LLVMdev] Bytecode Library Names

Chris Lattner sabre at nondot.org
Thu Oct 28 12:28:34 PDT 2004


On Thu, 28 Oct 2004, Reid Spencer wrote:
> This creates a certain amount of confusion. When one does an install,
> everything that gets installed should be under the $(prefix) variable
> somewhere. This is almost true today, except for the things that are installed
> into $(bytecode_libdir).

okay.

> So, to clear up the inconsistency, I would like to redefine:
>
> $(bytecode_libdir) = $(libdir)/llvmbc

Okay, sounds reasonable.

> If someone tried a link of a normal (llvm or otherwise) program, it would fail
> horribly if /usr/local/lib was in the library search path because libcrtend.a
> would contain bytecode not native code (linker says "unrecognized file type").

Sure, I understand.

> Another way around this is to ensure that we never use the same library
> name as the system counterpart. However, that doesn't help LLVM become a
> replacement for existing compilers and their runtime libraries.
>
> Before I commit changes that move the location of installed bytecode, I
> thought I'd open this topic up for discussion.

This approach sounds fine to me.  One further subject to ponder is whether
we really want to dump the runtime libraries into the same place as the
LLVM libraries at all...

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list