kunigami
kunigami

Reputation: 3086

Compile LLVM from source on linux

I've downloaded LLVM source code and I'm trying to compile it.

I've done the basic:

./configure --prefix=/some/path/
make
make install

But I've another project that depends on it and it seems to be looking for a shared library named: libLLVM-2.9.so, which is not built.

When I get llvm through synaptic (I'm using Ubuntu), it does install such library on /usr/lib (and llvm root also is installed on /usr/liv/llvm/). My question is: what should I configure so that the code compiled from source generates the libLLVM-2.9.so?

PS: Actually I guess this problem is more general, I'm citing llvm as an example.

Upvotes: 3

Views: 2707

Answers (3)

Anton Korobeynikov
Anton Korobeynikov

Reputation: 9324

Try to download 2.9 release and pass --enable-shared to configure

Upvotes: 2

eriktous
eriktous

Reputation: 6649

Have you tried --enable-shared as a configure option?

You can run ./configure --help to see a list of options configure accepts.

Upvotes: 3

Related Questions