Date: Wed, 9 Apr 2008 11:35:51 -0700 From: "David Allen" <the.real.david.allen@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Setting CPUTYPE and CFLAGS in make.conf Message-ID: <2daa8b4e0804091135w4b31ea67vf6334fa83845a4e1@mail.gmail.com> In-Reply-To: <20080409184435.3bb4b91c@gumby.homeunix.com.> References: <2daa8b4e0804081314o25b9773bn844734b674856e8c@mail.gmail.com> <20080409184435.3bb4b91c@gumby.homeunix.com.>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 9, 2008 at 10:44 AM, RW wrote: > On Tue, 8 Apr 2008 13:14:45 -0700 David Allen wrote: > > > The advice I've read in several posts on the subject involve > > everything from setting one, setting both, to ignoring both, > > sometimes with the =? notation and sometimes without. And then, I've > > read comments that suggest when compiling the kernel, for example, > > both are ignored, and default values (tucked away somewhere) are > > always applied. IIRC, the handbook recommends at least setting > > CPUTYPE. > > Avoid setting CFLAGS unless you have a good reason - Gentoo > documentation has a lot to answer for. CPUTYPE causes "-march" to be > applied, so it can affect compatibility. AFAIK both setting do affect > world and kernel because CFLAGS can cause a build to fail, and I've > seen matching march settings in kernel builds. > > > Or are those settings relevant to the > > compilation process only? Or to both the compilation process and the > > actual performance of the binary? > > It can be either, -O2 is related to execution, -pipe speeds-up > compilation. Thank you for your reply. It's starting to make a lot more sense. Just to confirm, then, if there's no CPUTYPE set, I can then set up a build server on an Opteron box, for example, to build world, kernel and ports binaries that can then be installed on my Thinkpad or a PIII box?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2daa8b4e0804091135w4b31ea67vf6334fa83845a4e1>