I've got both binutils and libtool installed.

How do I get it to use the GNU linker instead? Though 'ld -v' tells me
ld -v 'GNU ld version 2.11.2 (with BFD 2.11.2)'

Thanks,
Matt

-----Original Message-----
From: Aaron Bannert [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 28, 2001 1:56 PM
To: Tomcat Developers List
Subject: Re: Mod_webapp & Solaris 8


On Wed, Nov 28, 2001 at 10:08:28AM -0800, Justin Erenkrantz wrote:
> On Wed, Nov 28, 2001 at 12:31:13PM -0500, mgoyer wrote:
> > Httpd was built with gcc-3.0.1 the same version that I'm using for 
> > mod_webapp.
> 
> Then, just add -R/path/to/gcc-3.0.1/lib to your LDFLAGS for httpd.

There's a trick for getting the path, try `gcc -print-libgcc-file-name`.
Barring syntax errors, you could probably do something like LIBS="`gcc
-print-libgcc-file-name`". I don't suggest dynamically linking against
libgcc.

Another solution is to use the GNU linker (gld from binutils). gld knows
about libgcc and implicitly pulls symbols from it when needed.

BTW, if you upgrade to libtool-1.4.2 you'll get a nice little warning
about using the solaris linker with gcc.

-aaron

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to