"Michael J. McGillick" wrote:
>
> 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 <spec.file>
>
> to take advantage of those optimizations. Any leads?
>
> - Mike
>
Mike,
Assuming you have the .src.rpm version of the file you want to build all
you should have to do to compile it is run 'rpm --rebuild
foobar.src.rpm'. This will cause RPM to build a binary rpm from the
src.rpm. Now to optimization: Go to /usr/lib/rpm and open up the file
rpmrc. Look for the line that reads: "optflags: i386 -O2 -m486
-fno-strength-reduce" This is the option that RPM passes to gcc for
compilation. There is however one catch. The only change that I could
make is to the "-O" flag. You can change it to -O3 (better
optimization). I could not change -m486 to -m586. I believe it is a
limitation with gcc. I'm sure that pgcc supports the -m586 or -m686. I'm
not sure about egcs though.
Steve
--
illegitimi non carborundum
"Don't let the bastards grind you down"
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.