From owner-freebsd-current Tue Mar 2 1:23:47 1999 Delivered-To: freebsd-current@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 59ECA14CF4 for ; Tue, 2 Mar 1999 01:23:43 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA83477; Tue, 2 Mar 1999 09:22:25 GMT (envelope-from dfr@nlsystems.com) Date: Tue, 2 Mar 1999 09:22:25 +0000 (GMT) From: Doug Rabson To: Chuck Robey Cc: Thomas Dean , mark@grondar.za, freebsd-current@freebsd.org Subject: Re: egcs and gcc In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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