LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Static compilation of Eglibc (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/static-compilation-of-eglibc-925593/)

Mayurapriyan 01-25-2012 02:32 AM

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

knudfl 01-26-2012 11:40 AM

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.

.

Mayurapriyan 01-27-2012 09:35 AM

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

knudfl 02-02-2012 09:28 AM

AFAIK, the static libc.a etc. will always be created.

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

.

Mayurapriyan 02-02-2012 10:52 PM

Hi,
It's there in the name libc.a...I did not see it properly..

thanks and regards
mayur


All times are GMT -5. The time now is 03:47 AM.