Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 7555

Summary: zlib isn't built with included assembly language routines
Product: Gentoo Linux Reporter: robert longhausen <rob1>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Low    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description robert longhausen 2002-09-05 15:11:46 UTC
zlib-1.1.4 (and other versions) comes with assembly routines in the contrib
directory.  These are much faster than the default C code.  The ebuild doesn't
use these routines.

1.  Determine current system type (ie i386, i586, i686, or other)
2.  If we are building for a system type with assembly routine, copy the match.S
file from the contrib/asm* directory to the main directory
3.  configure with "-DASMV" added to the CFLAGS (for both shared and static)
4.  for static, "make OBJA=match.o"
5.  for shared, add "$(OBJA)" to "$(SHAREDLIB).$(VER): $(OBJS)" and to the next
line (lines 82 and 83), then "make OBJA=match.o"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-07 08:17:58 UTC
I am guessing there is a reason why this is not done by default ?
Stability/whatnot issues?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 14:07:52 UTC
The assembly stuff are not maintained, and I do not comfortable to add them.