The system-wide config file is usually /usr/lib/rpm/rpmrc. You should never modify it directly though. In your home directory, create a file called ~/.rpmrc and make your customizations there. Here's a quick example: -- ~/.rpmrc -- optflags: i686 -O9 -mpentiumpro -mcpu=pentiumpro -fstrength-reduce -fexpensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -foptimize-register-move -fdefer-pop -mfancy-math-387 -- end -- If the package uses './configure' make sure there is a CFLAGS="$RPM_OPT_FLAGS" in your .spec file preceding the ./configure statement like this: CFLAGS="$RPM_OPT_FLAGS" ./configure [--other-options] If not, the 'optflags' above won't make have any effect. Now, try building your package with the --target statement: rpm -ba --target=i686 mypackage.spec Ok, we now know enough to be dangerous. :) Definitely check out rpm.org, the rpm documentation project and of course gcc documentation. The gcc optimizations used in the preceding example are very aggressive could break some programs. They should be used with caution. http://www.rpm.org/ http://rpmdp.org/rpmbook/ http://gcc.gnu.org/ -- John Ross Hunt bigboote@mediaone.net mailto:bigboote@mediaone.net
Afternoon:
Does anyone out there have experience rebuilding RPMS? I'm thinking of recompiling some of the RPMS I have to i586 or i686 status. I've got gcc-2.95 installed, so I believe I can take advantage of the pentium optimizations.
My understanding is that there is a config file that should edited to tell the system when I execute a:
rpm -ba
to take advantage of those optimizations. Any leads?
- Mike
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq