From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 5 08:14:25 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74FC31065679 for ; Fri, 5 Sep 2008 08:14:25 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1751B8FC12 for ; Fri, 5 Sep 2008 08:14:23 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from [172.16.129.135] (fw.axelero.hu [195.228.243.120]) by people.fsn.hu (Postfix) with ESMTP id D9BCD10EEDD for ; Fri, 5 Sep 2008 09:56:39 +0200 (CEST) Message-ID: <48C0E634.70406@fsn.hu> Date: Fri, 05 Sep 2008 09:56:36 +0200 From: Attila Nagy User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: WITHOUT_CXX but with libstdc++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2008 08:14:25 -0000 Hello, I have some netbooted servers, which work off an NFS (master) server. Everything is built and installed on the master, so the netbooted "images" contain only what's really needed, so for example gcc is ripped out by WITHOUT_CPP=yes and WITHOUT_CXX=yes in the installworld phase. Unfortunately WITHOUT_CXX also disables the installation (given to installworld, of course if it's not built, it can't be installed) of libstdc++, which is needed for a lot of programs. Would it be possible to build CXX, but at installworld, install only the libraries (this is needed for runtime, so header files also won't be needed)? In src/gnu/lib/Makefile there is an MK_CXX test. With an OR MK_LIBCXX check (and defining WITH_LIBCXX as no by default) something similar could be done, with the limitation that at build time WITHOUT_CXX shouldn't be set and at install time, WITHOUT_CXX and WITH_LIBCXX should be yes. Any ideas about that (or a cleaner solution)? Thanks,