From owner-freebsd-questions@FreeBSD.ORG Sun Feb 15 12:16:28 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 43E6516A4CE for ; Sun, 15 Feb 2004 12:16:28 -0800 (PST) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CC0243D1F for ; Sun, 15 Feb 2004 12:16:28 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (34f5209e0459c4c0c058363576f073d4@adsl-67-119-53-169.dsl.lsan03.pacbell.net [67.119.53.169]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i1FKGR5l013054; Sun, 15 Feb 2004 12:16:27 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D2B4266D68; Sun, 15 Feb 2004 12:16:26 -0800 (PST) Date: Sun, 15 Feb 2004 12:16:26 -0800 From: Kris Kennaway To: Antoine Jacoutot Message-ID: <20040215201626.GA53048@xor.obsecurity.org> References: <200402151357.37226.ajacoutot@lphp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <200402151357.37226.ajacoutot@lphp.org> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: make.conf CFLAGS and ports 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: Sun, 15 Feb 2004 20:16:28 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 15, 2004 at 01:57:37PM +0100, Antoine Jacoutot wrote: > Hi :) >=20 > I was just wondering how CFLAGS were managed with make.conf and ports=20 > building. > Indeed, today I just realized that what's in make.conf overwrite the defa= ult=20 > build for ports. > I have this in my make.conf: > CFLAGS=3D -O -pipe >=20 > I though those were the right settings for building the world, but, I jus= t=20 > realized while building kde-3.2 that the ports should build with -O2 (fro= m=20 > the Mk or Makefile file I guess) but because of what I have in my make.co= nf,=20 > it builds like this: -O2 -O -pipe -march=3Dpentium3, and since the last= =20 > optimisation settings wins, kde-3.2 is build with: -O -pipe -march=3Dpent= ium3. > I suppose this is normal behaviour, but does this mean I have to comment= =20 > CFLAGS everytime I build a port, so that it gets its default optimisation= or=20 > is there another way ? > My dream configuration would be: > CFLAGS=3D -O -pipe for building the world > CFLAGS=3D -O -pipe for building ports, EXCEPT if the Makefile and/or Mk b= uild=20 > instructions give a higher optimisation setting. >=20 > I hope this is understandable, my English is poor when coming to explain= =20 > stuffs... We discussed this the other day on this very list..the answer is that this is not possible, and the contents of CFLAGS is what will be used for port builds (except a few broken ports). Kris --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAL9OaWry0BWjoQKURAsz5AJ0bHQ1Vnht2WHR38OsiZvtfHq55GACbB9MP 7shUrvmfpZB9kiT6faskfmk= =3RDN -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--