Unix Technical Forum

fresh installation - Rebuild all to use "prelink" ?

This is a discussion on fresh installation - Rebuild all to use "prelink" ? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hi all, I just finished yesterday, my new installation of Gentoo 1.4 from stage1 (with CFLAG="-march=athlon-xp -O2 -pipe -fomit-frame-pointer". ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 07:38 AM
Olivier P.
 
Posts: n/a
Default fresh installation - Rebuild all to use "prelink" ?

Hi all,

I just finished yesterday, my new installation of Gentoo 1.4 from stage1
(with CFLAG="-march=athlon-xp -O2 -pipe -fomit-frame-pointer".
I juste finished the "emerge system", and "emerge Xfree" (no kde, no gnome,
and no optionals apps). All seems to work very well, and I was very happy.

But, I also would like to use prelink, and I just read that I need to
add -fPIC in my CFLAG and also a "pic" parameter to my "USE" variable....

So I have take a look at the book, and they say that we have to re-emerge
Xfree with those parameters activated...
Anyway, which packages are concerned ? Is it better to reinstall all ?

Tell me that it's not true.. Please... :-)) Can you give me the exact list
of what I need to rebuild (the manual doesn't tell anything about Glibc...
Hummm... it seems strange)

Thanks a lot in advance,
Olivier


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:38 AM
Sharku
 
Posts: n/a
Default Re: fresh installation - Rebuild all to use "prelink" ?

On Mon, 16 Feb 2004 17:19:45 +0100, "Olivier P." <désolépasdespam> wrote
in <4030eda2$0$22405$626a14ce@news.free.fr>:

> Hi all,
>
> I just finished yesterday, my new installation of Gentoo 1.4 from stage1
> (with CFLAG="-march=athlon-xp -O2 -pipe -fomit-frame-pointer". I juste
> finished the "emerge system", and "emerge Xfree" (no kde, no gnome, and
> no optionals apps). All seems to work very well, and I was very happy.
>
> But, I also would like to use prelink, and I just read that I need to
> add -fPIC in my CFLAG and also a "pic" parameter to my "USE"
> variable....
>
> So I have take a look at the book, and they say that we have to
> re-emerge Xfree with those parameters activated... Anyway, which
> packages are concerned ? Is it better to reinstall all ?
>
> Tell me that it's not true.. Please... :-)) Can you give me the exact
> list of what I need to rebuild (the manual doesn't tell anything about
> Glibc... Hummm... it seems strange)


I think your using some out of date info, because according to this, pic
is not even a valid use flag (any more):
http://www.gentoo.org/dyn/use-index.xml

And from what I've seen with most compiles -fPIC is added automatically.
I've been using prelink for quite some time now without either of these
options set, and no problems. You might want to check the forums about
prelinking though, I remember seeing something about some gcc version
causing unwanted effects, but if this is a fresh install, you're likely to
be safe...
http://forums.gentoo.org/index.php

Sharku

--
Customer: "What does UART stand for anyway??"
Tech Support: "It stands for UART gettin' online"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 07:38 AM
Jason
 
Posts: n/a
Default Re: fresh installation - Rebuild all to use "prelink" ?

On Mon, 16 Feb 2004 17:15:09 GMT, Sharku
<sharkuc_SPAMTRAP_@yahoo.com.invalid> wrote:

>On Mon, 16 Feb 2004 17:19:45 +0100, "Olivier P." <désolépasdespam> wrote
>in <4030eda2$0$22405$626a14ce@news.free.fr>:
>
>> Hi all,
>>
>> I just finished yesterday, my new installation of Gentoo 1.4 from stage1
>> (with CFLAG="-march=athlon-xp -O2 -pipe -fomit-frame-pointer". I juste
>> finished the "emerge system", and "emerge Xfree" (no kde, no gnome, and
>> no optionals apps). All seems to work very well, and I was very happy.
>>
>> But, I also would like to use prelink, and I just read that I need to
>> add -fPIC in my CFLAG and also a "pic" parameter to my "USE"
>> variable....
>>
>> So I have take a look at the book, and they say that we have to
>> re-emerge Xfree with those parameters activated... Anyway, which
>> packages are concerned ? Is it better to reinstall all ?
>>
>> Tell me that it's not true.. Please... :-)) Can you give me the exact
>> list of what I need to rebuild (the manual doesn't tell anything about
>> Glibc... Hummm... it seems strange)

>
>I think your using some out of date info, because according to this, pic
>is not even a valid use flag (any more):
>http://www.gentoo.org/dyn/use-index.xml
>
>And from what I've seen with most compiles -fPIC is added automatically.
>I've been using prelink for quite some time now without either of these
>options set, and no problems. You might want to check the forums about
>prelinking though, I remember seeing something about some gcc version
>causing unwanted effects, but if this is a fresh install, you're likely to
>be safe...
>http://forums.gentoo.org/index.php
>
>Sharku


"pic" is still listed as a valid flag in ufed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:39 AM
Olivier P.
 
Posts: n/a
Default Re: fresh installation - Rebuild all to use "prelink" ?

Thanks for your answers !
I will retry prelink as soon as possible

Cheers,

Olivier


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 07:39 AM
Jerry McBride
 
Posts: n/a
Default Re: fresh installation - Rebuild all to use "prelink" ?

"Olivier P." <désolépasdespam> wrote:

> Hi all,
>
> I just finished yesterday, my new installation of Gentoo 1.4 from stage1
> (with CFLAG="-march=athlon-xp -O2 -pipe -fomit-frame-pointer".
> I juste finished the "emerge system", and "emerge Xfree" (no kde, no
> gnome, and no optionals apps). All seems to work very well, and I was very
> happy.
>
> But, I also would like to use prelink, and I just read that I need to
> add -fPIC in my CFLAG and also a "pic" parameter to my "USE" variable....
>
> So I have take a look at the book, and they say that we have to re-emerge
> Xfree with those parameters activated...
> Anyway, which packages are concerned ? Is it better to reinstall all ?
>
> Tell me that it's not true.. Please... :-)) Can you give me the exact list
> of what I need to rebuild (the manual doesn't tell anything about Glibc...
> Hummm... it seems strange)
>
> Thanks a lot in advance,
> Olivier


It's easy. Since you've got a new installation, it'll take less time. First,
add pic to your use line in /etc/make.conf file. While you're there, you
may want to look over your compiler flags too. I run some compiler tweaks
here on my athlon systems and they all run fine. Once you're done with that
file, issue an: emerge -ue world and go see a movie or two... maybe go to
bed and let the machine compile all night...

Once done, all the packages you have previously installed, will be
recompiled using the new use switch and compiler tweaks.

Uhh... before you do this, try a "man emerge" and brush up a bit.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com