Bug 63882 - wrong optflags in textutils.spec?
Summary: wrong optflags in textutils.spec?
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: textutils
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-20 04:30 UTC by kehcheng
Modified: 2007-04-18 16:42 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-10-08 14:16:20 UTC
Embargoed:


Attachments (Terms of Use)

Description kehcheng 2002-04-20 04:30:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 
1.0.3705)

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):


How reproducible:
Always

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, 
performance.

Additional info:

Comment 1 Bernhard Rosenkraenzer 2002-06-27 12:33:32 UTC
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. 



Note You need to log in before you can comment on or make changes to this bug.