Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31885 - Missing step in prelink documentation.
Summary: Missing step in prelink documentation.
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Prelink HOWTO (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-23 23:07 UTC by Bryan York
Modified: 2003-10-24 01:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :)