From owner-freebsd-hackers Mon May 12 05:46:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA03681 for hackers-outgoing; Mon, 12 May 1997 05:46:30 -0700 (PDT) Received: from hda.hda.com (hda-bicnet.bicnet.net [207.198.1.121]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA03672 for ; Mon, 12 May 1997 05:46:27 -0700 (PDT) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id IAA01947 for hackers@freebsd.org; Mon, 12 May 1997 08:44:42 -0400 (EDT) From: Peter Dufault Message-Id: <199705121244.IAA01947@hda.hda.com> Subject: Re: g++ shared library segfaults (SOLUTION) In-Reply-To: <199705111907.MAA15415@austin.polstra.com> from John Polstra at "May 11, 97 12:07:45 pm" To: hackers@freebsd.org Date: Mon, 12 May 1997 08:44:42 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > The "right" way to do it on older systems is to set "CPLUSPLUSLIB=true" > in the Makefile (assuming that is being used). If > you're not using then yes, it's necessary to manually > link in c++rt0.o for C++ shared libraries. > > As you mentioned, on recent -current systems, "gcc -shared" does the > right thing, and CPLUSPLUSLIB is not needed. I'm going to bring > that same functionality into the -2.2 branch soon. Ptolemy will be a port that uses gmake. "-shared" for both branches will be good. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936