Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GLIBC] Compiler de facon statique ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri May 20, 2005 3:42 pm    Post subject: [GLIBC] Compiler de facon statique ? Reply with quote

Bon - alors.. J'ai besoin de compiler GLIBC de facon statique. J'ai bien vu le USE flag "static", mais il nous dit que c'est pour installer les fichiers binaires de facon statique. Alors.. Je me sens bete. Y a une facon de la compiler et installer en statique dans portage? Ou alors.. Est-ce qu'il y a un endroit ou je peux trouver un binaire de glibc ?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Fri May 20, 2005 4:56 pm    Post subject: Reply with quote

t'appelles quoi de façon statique ?
si tu entends les .a, ils sont déjà faits quand tu compiles

Code:

qpkg -l glibc | grep "\.a"


après pour utiliser ceux là plutot que les shared, je pense qu'il faut passer une option à gcc devant les noms des libs.
_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri May 20, 2005 5:23 pm    Post subject: Reply with quote

D'accord.. Euh.. Un gourou de GCC dans les parages?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
blasserre
Veteran
Veteran


Joined: 10 Feb 2004
Posts: 1362
Location: Lille, Vlaanderen

PostPosted: Fri May 20, 2005 5:27 pm    Post subject: Reply with quote

Trevoke wrote:
D'accord.. Euh.. Un gourou de GCC dans les parages?

y'en a pas sur les forums LFS ? :mrgreen:
_________________
benj

technicien professionnel, ascendant winner
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri May 20, 2005 5:30 pm    Post subject: Reply with quote

Je veux pas toucher aux forums LFS, je veux rester pur et intact, comme une jeune femme nubile et vierge qui se garde pour .. euh.. Bref.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Apsforps
Guru
Guru


Joined: 27 Sep 2004
Posts: 520
Location: Belgium

PostPosted: Fri May 20, 2005 5:37 pm    Post subject: Reply with quote

Trevoke wrote:
jeune femme nubile et vierge qui se garde pour .. euh.. Bref.


Euh, fille non? Parce que femme et vierge, à part une il y a 2000 ans (et encore :P), j'en connais pas beucoup ;-)

Bon ça va je sors :arrow:
_________________
Apsforps
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri May 20, 2005 5:38 pm    Post subject: Reply with quote

A 20 ans c'est une femme!

[ceci dit, tiens la porte, je m'enfonce la]
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Leander256
l33t
l33t


Joined: 05 Jul 2003
Posts: 910
Location: Singapour

PostPosted: Fri May 20, 2005 6:59 pm    Post subject: Reply with quote

Trevoke wrote:
D'accord.. Euh.. Un gourou de GCC dans les parages?


Je suis pas gourou de gcc, mais par hasard ce ne serait tout simplement pas l'option -static que tu cherches?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri May 20, 2005 7:48 pm    Post subject: Reply with quote

Code:
$ make BOOT_LDFLAGS="-static" bootstrap
[..............................................]

/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/mnt/LFS/sources/gcc-3.4.1/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/mnt/LFS/sources/gcc-3.4.1/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/LFS/sources/gcc-3.4.1/gcc'
make: *** [bootstrap] Error 2


Voila voila..
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum