Date: Sun, 15 Feb 2004 12:16:26 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Antoine Jacoutot <ajacoutot@lphp.org> Cc: freebsd-questions@freebsd.org Subject: Re: make.conf CFLAGS and ports Message-ID: <20040215201626.GA53048@xor.obsecurity.org> In-Reply-To: <200402151357.37226.ajacoutot@lphp.org> References: <200402151357.37226.ajacoutot@lphp.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sun, Feb 15, 2004 at 01:57:37PM +0100, Antoine Jacoutot wrote: > Hi :) > > I was just wondering how CFLAGS were managed with make.conf and ports > building. > Indeed, today I just realized that what's in make.conf overwrite the default > build for ports. > I have this in my make.conf: > CFLAGS= -O -pipe > > I though those were the right settings for building the world, but, I just > realized while building kde-3.2 that the ports should build with -O2 (from > the Mk or Makefile file I guess) but because of what I have in my make.conf, > it builds like this: -O2 -O -pipe -march=pentium3, and since the last > optimisation settings wins, kde-3.2 is build with: -O -pipe -march=pentium3. > I suppose this is normal behaviour, but does this mean I have to comment > CFLAGS everytime I build a port, so that it gets its default optimisation or > is there another way ? > My dream configuration would be: > CFLAGS= -O -pipe for building the world > CFLAGS= -O -pipe for building ports, EXCEPT if the Makefile and/or Mk build > instructions give a higher optimisation setting. > > I hope this is understandable, my English is poor when coming to explain > 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAL9OaWry0BWjoQKURAsz5AJ0bHQ1Vnht2WHR38OsiZvtfHq55GACbB9MP 7shUrvmfpZB9kiT6faskfmk= =3RDN -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040215201626.GA53048>
