LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-24-2010, 01:55 AM   #1
riph72
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Kernel & C Library


Hello all,

1) Does the choice of C library (i.e. glibc or uclibc) affect the kernel (and it's configuration) at compile-time? Or can a given compiled kernel be used with either library?

2) How can I tell which C library a given Linux system (I won't necessarily be using an off-the-shelf distribution) is using?

If it's not obvious, my interest is directed towards "embedded" Linux...

Cheers,
Richard.
 
Old 03-24-2010, 07:51 PM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
Hi,

the choice of library does not affect the kernel. Any C library can be used with a kernel as long as the c library uses the linux ABI (which is the case since otherwise the library is useless). You can even use two different C libraries on the same kernel or no C library at all. The source of the linux kernel does not depend on any other source code than its own. The only exception are the tools that are needed to compile the kernel.

To find the version of the C library enter the following command:
Code:
/lib/libc.so.6
 
Old 03-25-2010, 05:17 AM   #3
riph72
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by irmin View Post
Hi,

the choice of library does not affect the kernel. Any C library can be used with a kernel as long as the c library uses the linux ABI (which is the case since otherwise the library is useless). You can even use two different C libraries on the same kernel or no C library at all. The source of the linux kernel does not depend on any other source code than its own. The only exception are the tools that are needed to compile the kernel.

To find the version of the C library enter the following command:
Code:
/lib/libc.so.6
Thanks, that's very much the definitive answer I was looking for
 
  


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
Webalizer & GD library Install Wynand1 Linux - Software 3 07-11-2012 03:14 AM
Kernel & C Library riph72 Linux - Newbie 4 03-24-2010 03:31 AM
linking library in kernel - what might be the calls library should not be using lakshmi00786 Linux - Kernel 2 07-25-2009 01:30 PM
Different make & library errors sachinh Red Hat 2 07-12-2007 06:37 AM
UT2003 & OpenGL library crispian Linux - Games 3 05-03-2004 09:56 PM


All times are GMT -5. The time now is 10:41 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