views:

7

answers:

0

Hi, I have downloaded llvm and llvm-gcc sources to my machine. I was able to build both of them fine. Then I created a new source file in LLVM Analysis folder which calls into another library (sqlapi). I installed this lib into the usual LLVM libs location. I am able to build LLVM fine but when I try to build LLVM-GCC I get undefined symbol references errors for calls into the new lib. I am trying to add the new library to link command line by setting LDFLAGS to "-lsqlapi", but build still fails with same errors and I don't see the lib included in the linker command line. How can I pass linker flags to the makefile for llvm-gcc? Thanks for your help in advance.

Regards, Manish