[LLVMdev] Link error with TOOLLINKOPTS=-ldbghelp on MinGW

Chris Lattner sabre at nondot.org
Mon Oct 25 14:53:50 PDT 2004


On Mon, 25 Oct 2004, John Criswell wrote:
> Henrik Bach wrote:
> >> From: John Criswell <criswell at cs.uiuc.edu>
> >> Date: Mon, 25 Oct 2004 15:38:52 -0500
> >
> >
> >>
> >> When you run configure, you'd do something like this:
> >>
> >> configure --prefix=<...> LDFLAGS="-L<path where libdgbhelp is installed"
> >>
> >> If you modify Makefile.config directly, just add the necessary -L
> >> option to TOOLLINKOPTS.  I believe that should fix it.
> > But, how do I tell which library to link from the path? Because, the
> > lib<library> is in the default library path of MinGW (like /usr/lib).
>
> If libdgbhelp is in the default library path, a -L option should not be
> necessary, and in that case, your linking should have worked.

Henrik,

Have you considered modifying Makefile.rules to always pass the -L & -l
options you want to every tool?  If you look for uses of the 'Link'
variable, perhaps that will show you where it add them.

-Chris

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




More information about the llvm-dev mailing list