From owner-freebsd-current Mon Mar 1 16:55:31 1999 Delivered-To: freebsd-current@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 7F204154CB for ; Mon, 1 Mar 1999 16:55:27 -0800 (PST) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.3/8.8.5) with ESMTP id TAA04502; Mon, 1 Mar 1999 19:53:07 -0500 (EST) Date: Mon, 1 Mar 1999 19:53:07 -0500 (EST) From: Chuck Robey To: Thomas Dean Cc: mark@grondar.za, freebsd-current@FreeBSD.ORG Subject: Re: egcs and gcc In-Reply-To: <199903020042.QAA57349@ix.netcom.com> 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, 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. > > tomdean > > ============================================== > > # g++ -m486 -O2 hello.cc -o hello > # ldd hello > hello: > libg++.so.4 => /usr/lib/libg++.so.4 (0x28051000) > libstdc++.so.2 => /usr/lib/libstdc++.so.2 (0x28093000) > libm.so.2 => /usr/lib/libm.so.2 (0x280ce000) > libc.so.3 => /usr/lib/libc.so.3 (0x280e9000) > > # eg++ -m486 -O2 hello.cc -o hello > # ldd hello > hello: > libm.so.2 => /usr/lib/libm.so.2 (0x2805e000) > libc.so.3 => /usr/lib/libc.so.3 (0x28079000) > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run picnic (FreeBSD-current) (301) 220-2114 | and jaunt (Solaris7). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message