Description of problem: The /usr/lib/rpm/rpmrc file makes use of -mcpu= for the optflags on various architectures. gcc issues a warning that this is deprecated. Version-Release number of selected component (if applicable): gcc-4.1.1-30 rpm-4.4.2-32 How reproducible: always Steps to Reproduce: 1. use rpmbuild on a spec file with i386 architecture 2. 3. Actual results: `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. Expected results: no warning is issued Additional info:
The default optflags carried in rpm configuration have been updated for modern gcc a couple of months ago. UPSTREAM
Do you have redhat-rpm-config installed - that contains the distribution optflags. This should have been installed if you selected the Software Development group or do yum install "Development Tools"
Rpm.org now has updated optflags, but in Fedora context you'll need to have redhat-rpm-config installed if you intend to build packages for it like explained in c#2.