From owner-freebsd-ports@FreeBSD.ORG Sun Nov 30 23:47:27 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7F8616A4CE for ; Sun, 30 Nov 2003 23:47:27 -0800 (PST) Received: from postoffice.e-easy.com.au (eth0.lnk.aims.net.au [203.31.73.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id E053D43F3F for ; Sun, 30 Nov 2003 23:47:22 -0800 (PST) (envelope-from chris@e-easy.com.au) Received: from e-easy.com.au (eet03s01.aims.private [192.168.10.3]) by postoffice.e-easy.com.au with ESMTP id hB17lDrK075133 for ; Mon, 1 Dec 2003 18:47:13 +1100 (EST) (envelope-from chris@e-easy.com.au) Received: from eet03s01 by e-easy.com.au (e-easy.com.au) (MDaemon.PRO.v7.0.0g.R) with ESMTP id md50000030616.msg for ; Mon, 01 Dec 2003 18:16:18 +1100 From: "Chris Knight" To: "'Guy Middleton'" , Date: Mon, 1 Dec 2003 18:16:18 +1100 Organization: E-Easy Message-ID: <06e201c3b7db$039b3510$030aa8c0@corp.eeasy.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <20031130151802.GA66328@chaos.obstruction.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Importance: Normal X-Spam-Processed: e-easy.com.au, Mon, 01 Dec 2003 18:16:18 +1100 (not processed: spam filter disabled) X-Return-Path: chris@e-easy.com.au X-MDaemon-Deliver-To: ports@freebsd.org X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) Subject: RE: g++33 creates large binaries on 5.1-RELEASE X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 07:47:27 -0000 Howdy, 5.1-RELEASE comes with gcc 3.2 (from memory). g++33 will have been installed from the ports tree, which by default = only creates static libraries of libstdc++, etc. It's this static linking = that is generating the large binaries. One way around this is to rebuild gcc33 with shared library support, = then add the directory containing the shared libraries to ldconfig_paths in /etc/rc.conf. The ideal way would be for the gccXX ports to grow a gccXX-shlib slave = port which would be added to the RUN_DEPENDS list of a port when that port = asks for a gcc that isn't part of the base install. The gccXX-shlib slave = port would only build/install the shared libraries for that version of gcc as well as adding an rc.d script to add the directory to ldconfig. No, I'm = not volunteering. Regards, Chris Knight Systems Administrator E-Easy Tel: +61 3 6334 9995 Fax: +61 3 6331 7032 Mob: +61 419 528 795 Web: http://www.e-easy.com.au > -----Original Message----- > From: owner-freebsd-ports@freebsd.org=20 > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Guy Middleton > Sent: Monday, 1 December 2003 02:18 > To: ports@freebsd.org > Subject: g++33 creates large binaries on 5.1-RELEASE >=20 >=20 > I compile a simple C++ program: >=20 > #include > int main() { > std::ofstream out( "file.out" ); > } >=20 > With g++33 on a 5.1-RELEASE system, it creates a very large=20 > binary (500k). Is there something obvious I am doing wrong=20 > here? Thanks. _______________________________________________ > freebsd-ports@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/free> bsd-ports > To=20 > unsubscribe, send any mail to=20 > "freebsd-ports-unsubscribe@freebsd.org" >=20