From owner-freebsd-questions@FreeBSD.ORG Fri May 14 11:50:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68D7016A4CE for ; Fri, 14 May 2004 11:50:48 -0700 (PDT) Received: from thalia.otenet.gr (thalia.otenet.gr [195.170.0.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34EFA43D1F for ; Fri, 14 May 2004 11:50:46 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b240.otenet.gr [212.205.244.248]) by thalia.otenet.gr (8.12.10/8.12.10) with ESMTP id i4EIocDq022100; Fri, 14 May 2004 21:50:42 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i4DM3PlP033405; Fri, 14 May 2004 01:03:25 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i4DM3PMc033404; Fri, 14 May 2004 01:03:25 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 14 May 2004 01:03:25 +0300 From: Giorgos Keramidas To: platanthera Message-ID: <20040513220325.GC2334@gothmog.gr> References: <200405132329.07892.platanthera@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200405132329.07892.platanthera@web.de> cc: freebsd-questions@freebsd.org Subject: Re: COPTFLAGS (not?) only for compiling the kernel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 18:50:48 -0000 On 2004-05-13 23:29, platanthera wrote: > [/etc/make.conf] > ... > # To compile just the kernel with special optimizations, you should use > # this instead of CFLAGS (which is not applicable to kernel builds anyway). > # There is very little to gain by using higher optimization levels, and doing > # so can cause problems. > # > COPTFLAGS= [whatever] > ... > > just the kernel... sounds like COPTFLAGS setting should not effect world or > port builds, but apparently it does. > Or do I misunderstand something? Yes, you do. But I'm sure that you will find the make.conf(5) manpage very informative and useful. Especially the following parts: | The following list provides a name and short description for variables | that are used for all builds, or are used by the makefiles for things | other than builds. [...] | | CFLAGS (str) Controls the compiler setting when compiling C code. | Optimization levels above -O (-O2, ...) are not supported. | | [...] | | The following list provides a name and short description for variables | that are only used doing a kernel build: [...] | | COPTFLAGS (str) Controls the compiler settings when building the ker- | nel. Optimization levels above [-O (-O2, ...)] are not I hope this helps a bit. - Giorgos