LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 01-25-2012, 02:32 AM   #1
Mayurapriyan
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
Static compilation of Eglibc


Hi all,
I want to statically link Eglibc with my application.But i learned that Eglibc is a shared,which can only be dynamically linked.So i just wanted to know how to statically compile Eglibc so that i can statically link it with my application.

thanks and regards
mayur
 
Old 01-26-2012, 11:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,185

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
If you have a Debian or Ubuntu OS, you already have eglibc.
http://packages.debian.org/source/squeeze/eglibc
The static libraries are provided by the package libc-dev.
http://packages.debian.org/squeeze/libc6
http://packages.debian.org/squeeze/libc6-dev
http://packages.debian.org/squeeze/i...6-dev/filelist
> /usr/lib/libc.a , /usr/lib/libc_nonshared.a , /usr/lib/libcrypt.a , /usr/lib/libdl.a , /usr/lib/libm.a
etc. etc.

.
 
Old 01-27-2012, 09:35 AM   #3
Mayurapriyan
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
hi,
Thanks for your suggestion.But i am cross compiling it for arm with Linaro cross compiler.In that case how should i proceed.

thanks and regards
mayur
 
Old 02-02-2012, 09:28 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,185

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
AFAIK, the static libc.a etc. will always be created.

But : It's easy to check on your version of eglibc with
./configure --help

.
 
Old 02-02-2012, 10:52 PM   #5
Mayurapriyan
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi,
It's there in the name libc.a...I did not see it properly..

thanks and regards
mayur
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 64 - Static compilation broken ! NoStressHQ Slackware 48 05-15-2010 05:20 AM
LXer: Debian is switching to EGLIBC LXer Syndicated Linux News 0 05-06-2009 03:30 PM
static library cross compilation kskkumar Programming 3 03-20-2007 12:35 PM
Static Bind Applications to Kernel; cross compilation Alybyzrp Linux - Newbie 0 11-25-2003 01:38 PM
static compilation of Qt programs tb_4js Linux - Software 0 04-25-2003 08:13 AM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration