Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 1999 09:22:25 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Chuck Robey <chuckr@mat.net>
Cc:        Thomas Dean <tomdean@ix.netcom.com>, mark@grondar.za, freebsd-current@freebsd.org
Subject:   Re: egcs and gcc
Message-ID:  <Pine.BSF.4.05.9903020920030.83335-100000@herring.nlsystems.com>
In-Reply-To: <Pine.BSF.4.10.9903011951380.339-100000@picnic.mat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Mar 1999, Chuck Robey wrote:

> On Mon, 1 Mar 1999, Thomas Dean wrote:
> 
> > As suspected, eg++ is using libstdc++.a, not libstdc++.so.2, as it
> > should.
> > 
> > How does this get fixed?
> 
> I just noticed that the egcs Makefile has a buried:
> 
> .if defined(WANT_SHAREDLIBS)
> CONFIGURE_ARGS+= --enable-shared
> .endif
> 
> in it.  That's not particularly friendly, I wonder why it was put in
> there, unless the feature is somehow broken?  I'm trying to rebuild it
> now to see what it then installs.

That was put in extremely recently.  The reason it doesn't build a shared
library by default is to avoid potential conflict with the system
libstdc++.

If you enable it, the port will install the shared lib in
/usr/lib/gcc-lib/.../libstdc++.so.  You may need to add a runpath option
to your link to point the executable at the directory.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 442 9037




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903020920030.83335-100000>