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

Bug 31885

Summary: Missing step in prelink documentation.
Product: [OLD] Docs-user Reporter: Bryan York <bryan_york>
Component: Prelink HOWTOAssignee: Docs Team <docs-team>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic.php?p=604383#604383
Whiteboard:
Package list:
Runtime testing required: ---

Description Bryan York 2003-10-23 23:07:23 UTC
Per the forums:
"Hmmm... 

Are you guys sure you have done it right? 

These are the steps: 

1. emerge prelink 
2. add 'prelink' to your USE flags in /etc/make.conf 
3. emrge any packages that you want to be prelinked. 
4. run prelink with flasg as specified in the docs. 

Just emerging prelink and running it will not improve load times. The 
applications need to be recompiled with the -fPIC (Position Independent Code) 
flag in order to be pre-linkable. 

Erik"

I read the documentation, and I wondered why I had not seen any improvements in 
speed. The adding of the prelink USE flag and then running prelink was not 
listed in the document.

Reproducible: Always
Steps to Reproduce:
1. Follow the prelink documentation
2. Prelink does nothing.
3.

Actual Results:  
Prelink did not speed up any of my applications.

Expected Results:  
It should of sped up some applications.
Comment 1 SpanKY gentoo-dev 2003-10-23 23:21:36 UTC
prelink is not an USE flag ... i dont know where that came from ...
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-10-24 01:06:08 UTC
Running prelink is on the document (http://www.gentoo.org/doc/en/prelink-howto.xml#doc_chap3_sect1)

You also don't need to add anything anywhere.

Information about the -fPIC is in http://www.gentoo.org/doc/en/prelink-howto.xml#doc_chap4_sect1.
It is automatically used, and if it isn't, then a bugreport should be made
against that library with (if possible) a patch to automatically use -fPIC.

I'm marking this one as INVALID; ofcourse if you have further questions you
can still ask them :)