Release Building and /etc/make.conf

Ruslan Ermilov ru at freebsd.org
Mon Jan 19 00:33:23 PST 2004


On Mon, Jan 19, 2004 at 06:23:30PM +1100, Chris Knight wrote:
> Howdy,
> 
> I'm just doing a release build of 5.2 and have noticed that
> from Stage 4.2 onwards, -mcpu=pentiumpro is added to the cc
> command line.
> The only place I can see this being set is in /etc/make.conf
> which is outside the sandbox.
> I was expecting the release build to be CPU agnostic, but
> this doesn't appear to be the case. Any way of overriding
> this without modifying /etc/make.conf?
> 
There's a substantional difference between -mcpu and -march:

: -mcpu=cpu type
:        Assume  the defaults for the machine type CPU TYPE when schedul-
:        ing instructions.  The choices for CPU  TYPE  are:  i386,  i486,
:        i586  (pentium),  pentium,  i686  (pentiumpro),  and pentiumpro.
:        While picking a specific CPU TYPE will schedule things appropri-
:        ately  for  that particular chip, the compiler will not generate
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:        any code that does not run on the i386  without  the  -march=cpu
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:        type option being used.
: 
: -march=cpu type
:        Generate instructions for the machine type CPU TYPE.  The choic-
:        es for CPU TYPE are: i386, i486, pentium, and pentiumpro.  Spec-
:        ifying -march=cpu type implies -mcpu=cpu type.

Please also see the commit log for bsd.cpu.mk,v 1.13.


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040119/5c42476c/attachment.bin


More information about the freebsd-current mailing list