From owner-freebsd-questions@FreeBSD.ORG Thu May 13 16:41:37 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 A89FA16A4CF for ; Thu, 13 May 2004 16:41:37 -0700 (PDT) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F4E643D54 for ; Thu, 13 May 2004 16:41:37 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (0ec78217d01cd3ed1b9615ec76d548d9@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i4DNfZNu022682; Thu, 13 May 2004 16:41:36 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5575051BB5; Thu, 13 May 2004 16:41:35 -0700 (PDT) Date: Thu, 13 May 2004 16:41:35 -0700 From: Kris Kennaway To: platanthera Message-ID: <20040513234135.GD22583@xor.obsecurity.org> References: <200405132329.07892.platanthera@web.de> <200405140112.41576.platanthera@web.de> <20040513230947.GB22583@xor.obsecurity.org> <200405140139.35007.platanthera@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jCrbxBqMcLqd4mOl" Content-Disposition: inline In-Reply-To: <200405140139.35007.platanthera@web.de> User-Agent: Mutt/1.4.2.1i 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: Thu, 13 May 2004 23:41:37 -0000 --jCrbxBqMcLqd4mOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 14, 2004 at 01:39:34AM +0200, platanthera wrote: > On Friday 14 May 2004 01:09, Kris Kennaway wrote: > > On Fri, May 14, 2004 at 01:12:41AM +0200, platanthera wrote: > > > On Friday 14 May 2004 00:48, Kris Kennaway wrote: > > > > On Thu, May 13, 2004 at 11:29:07PM +0200, 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=3D [whatever] > > > > > ... > > > > > > > > > > just the kernel... sounds like COPTFLAGS setting should not > > > > > effect world or port builds, but apparently it does. > > > > > > > > It shouldn't, CFLAGS is used for that. > > > > > > > > Kris > > > > > > I'm just compiling koffice and it looks like COPTFLAGS=3D -O -pipe > > > overrides the koffice defaults (no CFLAGS defined in make.conf). > > > > The default CFLAGS value *is* "-O -pipe". > > > > Kris >=20 > OK, but it looks like -O overrides -O2 here, right? It depends which comes later in the gcc arguments. > And if that's true, how can I make the port build use the ports default= =20 > instead of the system default? The policy of the ports collection is that all ports should use CFLAGS instead of their own crazy defaults, which are often not appropriate. If you want to compile your ports with -O2 -pipe (recommended against because of compiler or system bugs it sometimes exposes), set CFLAGS=3D-O2 -pipe. Kris --jCrbxBqMcLqd4mOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFApAevWry0BWjoQKURAv69AKDFcM7sNnykz+Mk3b2uIoic8IHQPwCg3my6 ZLecLOP42JyT+GVtUrMFkDw= =SkWp -----END PGP SIGNATURE----- --jCrbxBqMcLqd4mOl--