From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Galeon/1.3.21
Description of problem:
The optflags variable for the i386 architecture as defined in /usr/lib/rpm/rpmrc includes -mcpu=i686. This flag is deprecated by the gcc compiler and generates a warning. For most packages, the only bad result is a ton of warnings while compiling; however in some cases the extra compiler warning may change the result of a configure script.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Compile a source rpm that does not define the CFLAGS variable.
Actual Results: The gcc compiler warns:
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
Expected Results: No compiler warning should appear.
Workaround: include the line
optflags: i386 -O2 -g -march=i386 -mtune=i686
in the file /etc/rpmrc
Created attachment 121753 [details]
use -mtune=i686 rather than deprecated -mcpu=i686
1: The same problem exists in fc4. Should I open a new bug for that?
2: There are other architectures that also use the -mcpu option, presumably with
the same results. I did not change these in the attached patch, however, since I
have no way of testing the patch on these systems.
install the redhat-dpm-config patch.
And report a bug against that package for not sending patches upstream.