From owner-freebsd-current Wed Mar 3 1:18: 1 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 67BC114F7F for ; Wed, 3 Mar 1999 01:16:57 -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 JAA87214; Wed, 3 Mar 1999 09:15:58 GMT (envelope-from dfr@nlsystems.com) Date: Wed, 3 Mar 1999 09:15:58 +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 Tue, 2 Mar 1999, Chuck Robey wrote: > On Tue, 2 Mar 1999, Doug Rabson wrote: > > > 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, my egcs (when I tell it to --enable-shared) installs: > > libstdc++.so > libstdc++.so.2.9 and > libstdc++.so.2.9.0 > > How about I just keep the first one, kill the middle one, and make the > real file libstdc++.so.3 (so it keeps our numbering). I'm not sure > about the rules for this, since elf ... will stuff looking for > libstdc++.so.2 find my new libstdc++.so.3, or will the new one (with > it's incompatible format, like you said) be safe? It depends on the SONAME field inside the shared library. The full name of the lib needs to match the SONAME I think (which is libstdc++.so.2.9 in my build). I realise that the naming doesn't follow the ports tree rules for shared libs but it shouldn't cause conflicts if you use runpaths to point at its location. I use '-Wl,-rpath=/usr/local/lib/gcc-lib/...' when I link stuff that I want to use the shared lib. Hopefully, this is only a short term measure until we get the beast properly integrated into the build. -- 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