Red Hat Bugzilla – Bug 63882
wrong optflags in textutils.spec?
Last modified: 2007-04-18 12:42:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
Description of problem:
The line "%define optflags -g" in textutils.spec causes all programs in the
package to be built without any optimization. On a 1.7 GHz Xeon workstation
with 2 GB of memory, checking the MD5 sum of a 600 MB iso image takes 29
seconds using /usr/bin/md5sum. The same operation takes less than 5 seconds
using a private copy of md5sum recompiled with the optflags line removed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.time /usr/bin/md5sum xxx.iso
2.recompile md5sum with some level of optimization
3.time ./md5sum xxx.iso
Actual Results: Recompiled md5sum runs much faster than /usr/bin/md5sum.
The same is true with other programs in textutils.
Expected Results: Programs in /usr/bin should have decent, if not optimal,
This was necessary at some point because of compiler problems, but since they
have been fixed since, I agree it should be removed. Done in 2.0.21-4.