Subject: Re: Software compiling
To: None <paolo.torelli@students.univr.it>
From: David Brownlee <abs@netbsd.org>
List: port-i386
Date: 08/24/2001 11:10:59
For packages and NetBSD userland you may want to install
'devel/cpuflags', and add '.sinclude "/usr/pkg/share/mk/cpuflags.mk"'
to your /etc/mk.conf (documented in cpuflags(8)).
Or just run 'cpuflags' to see what the value would be :)
cpuflags works out the appropriate values to set in CFLAGS and
CXXFLAGS based on the CPU, and also sets a CPU_DIR variable in
case you want to generate binary packages. Its most useful if
you have a bunch of different machines and want to make sure
each gets the right flags, and shares the right set of binary
packages.
--
David/absolute -- www.netbsd.org: No hype required --
On Fri, 24 Aug 2001, Torelli Paolo wrote:
>
> Hi.
> Q:
> I'd like to compile the kernel and the packages optimized for my
> architecture (i686) avoiding the backward compatibility (i386-i586).
>
> Which files/settings do I have to modify to achieve that?
>
> I remember sometime ago a discussion (in one of the mailing lists)
> talked about something similar; I vaguely recall there were 2 different
> gcc settings (one to reschedule, one to tell the architecture), but I
> cannot dig it out from the archives.
>
> Thank you for your assistance.
>