Subject: Re: How to create packages with several -march?
To: None <netbsd-users@NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-users
Date: 03/18/2005 21:47:06
In article <20050318211740.GA944@nunotex.local>,
	Nuno Teixeira <nu@nunotex.freeshell.org> writes:
> I'm working and upgrading a Pentium 200 MMX and I like to optimize the
> packages with -march=pentium-mmx using my Athlon build system.

IIRC GCC might create broken code if that option is used.

> Is there any way to create packages with several optimizations like:
> 
> 	/usr/packages/2.0/i386_pentium-mmx/
> 	/usr/packages/2.0/i386_athlon-xp/
> 	/usr/packages/2.0/i386_pentiumpro
> 	etc...
> 
> Using only one build PC?

No. But you can build the different package flavour in change root jails.
The "pkg_comp" package can provide those.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/