3

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.

3 Answers 3

3

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

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

Sign up to request clarification or add additional context in comments.

Comments

2

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

Comments

0

I was able to build LLVM 3.2 using the following guides

http://linuxdeveloper.blogspot.com/2012/12/building-llvm-32-from-source.html

http://www.acsu.buffalo.edu/~charngda/llvm_build.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.