Link error with TOOLLINKOPTS=-ldbghelp on MinGW

Yes, that's my understanding, too. But I'm not controlling where my library -ldbghelp is put when g++ is called. I just put it in the TOOLLINKOPTS variable in Makefile.config.

Henrik

Henrik Bach wrote:

Yes, that's my understanding, too. But I'm not controlling where my library -ldbghelp is put when g++ is called. I just put it in the TOOLLINKOPTS variable in Makefile.config.

Will this library be needed for tblgen or for all LLVM programs? And is it a library you wrote for LLVM, or is it a MingW library?

TOOLLINKOPTS is used by configure to convey additional linker flags needed to use system libraries. These are typically system libraries for which a -L option is not needed or has already been supplied to the configure script.

For libraries internal to LLVM, we add the library to the USEDLIBS variable in the program's Makefile.

How we should handle the problem depends upon whether this will be needed for all programs and whether libdbghelp will be part of the LLVM source tree.

-- John T.