what's the current state of being able to build simple analysis passes
out-of-tree against only llvm headers and libraries with llvm-config?
I see that clang and klee do not use llvm-config but for example
rubinius does. Should both approaches be documented?
Currently for example docs/WritingAnLLVMPass.html says
"you need to create a new directory somewhere in the LLVM source
while people who only want to experiment with simple passes might feel
more comfortable if they didn't need to create directories inside llvm
source tree. I ended up with the following Makefile:
g++ -c -o LLVMHello.o `llvm-config --cxxflags` Hello.cpp
gcc -shared -Wl,-soname,LLVMHello.so -o LLVMHello.so LLVMHello.o
rm -f LLVMHello.so LLVMHello.o
(I can not use Makefile.common since it is not installed by 'make