On Tue, 28 Sep 2010 12:05:04 -0300 Renato Botelho <rbga...@gmail.com> wrote:
> 2010/9/28 Török Edwin <ed...@clamav.net>: > > Hi, > > > > I just committed some changes to configure and the > > bytecode2llvm.cpp to allow building with an external LLVM. > > This will allow you to build against LLVM 2.8 when it is released > > (right now you can test with LLVM 2.8 rc2). > > It won't work if you try linking against LLVM 2.7 for obvious > > reasons (upstream's 2.7 doesn't have our patches). > > > > How to use it: > > ./configure --enable-llvm --with-system-llvm=/path/to/llvm-config > > FreeBSD has llvm 2.8 imported on src tree (just on 9.0-CURRENT), Good. > but llvm-config is not installed into the system, is there a way to > test it without llvm-config installed? Not really, ClamAV must know how LLVM was built because a +Asserts build is not ABI compatible with a -Asserts build for example. Also some other flags, like -frtti or not must probably agree too. You can try writing a script that fakes llvm-config: llvm-config --cxxflags -I/path/to/llvmincludes -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-exceptions -fno-rtti -fPIC llvm-config --ldflags /path/to/llvm.so llvm-config --libfiles <nothing> llvm-config --libs <nothing> Best regards, --Edwin _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net