
Here's a simpler method. If you have a recent RPM and GCC (that supports >486 instructions, RH6.2 does). Put these lines in you ~/.rpmrc buildarchtranslate: athlon: i686 buildarchtranslate: i686: i686 buildarchtranslate: i586: i586 buildarchtranslate: i486: i486 When you build an rpm with rpm --rebuild pkg.src.rpm You will see gcc being called like this on an i686: gcc -O2 -march=i686 -o qstat qstat.c hcache.c template.c And RPM will create a .i686.rpm instead of a .i386.rpm Later
buildarchtranslate: i586: i386
changing this to read 'i586' means rpm builds i586 target rpms by default. alternatively you can pass the --target=i586 to have the same effect, i beleive.
of course, stuff built for an i686 will have problems running on an i386, so be careful when building rpms for other computers!
-- Oliver Jones - oliver(a)deeper.co.nz - Mobile: +64-21-41-2238 - Deeper Design Limited - http://www.deeperdesign.com ------------ WLUG - The Waikato Linux Users Group To unsubscribe, send an email to majordomo(a)list.waikato.ac.nz with "unsubscribe wlug" in the body of the message.