[LLVMbugs] Unecessary linking and compilation

Chris Lattner sabre at nondot.org
Fri Oct 15 11:40:49 PDT 2004


On Fri, 15 Oct 2004, Henrik Bach wrote:

> >Ok, then I'm not sure.  Use the 'make -d' option, which should tell you
>
> I got this line:
> ----------------
>    Prerequisite `/C/Projects/build/MinGW/llvm/lib/Debug/libdbghelp.a' of
> target `/C/Projects/build/MinGW/llvm/tools/Debug/tblgen' does not exist.
> ----------------
>
> libdbghelp. is a static library that needs to be included every time
> platform/Signals.cpp (*.o) file is referenced. I've put this library in the
> tools/Makefile USEDLIBS line.
>
> Can I move it to another place not causing relinkage of tblgen?

That's the problem.  USEDLIBS is only for LLVM libraries.  Add it to
LDFLAGS instead and it should work:

LDFLAGS += -ldbghelp

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-bugs mailing list