LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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



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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration