LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-26-2006, 07:59 AM   #1
P.S.R.K.S.PRASAD
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
How to tell compiler to not to use GNU library (glibc)


Hi,
I am compiling using cross compiler for ARM platform.It is giving

arm-unknown-linux-gnu/bin/ld:cannot find -lc.

When I searched for the above error it was found that this error will come when the compiler uses glibc utilities.

How to tell compiler to not to use glibc?It is not required to use glibc.Are there any flags?

Please help me.

Regards,
P.S.R.K.S.PRASAD
 
Old 12-27-2006, 02:58 AM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 253

Rep: Reputation: 36
If you're calling GCC/compiler-with-linker, try -nostdlib. Else, you can probably call compiler, assembler, linker seperately and have them do exactly what you want.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
newb question on GNU glibc-2.3.1 upgrade to GNU glibc-2.3.2 clindy528 Slackware 1 11-10-2005 06:49 AM
GNU based c++ cross compiler unable to link c library k_taid Programming 1 06-29-2005 09:38 AM
Help with GNU C++ Compiler please... Stiltz Linux - Software 1 03-15-2005 09:17 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
Where to get compiler gnu c sofasurfer Linux - Games 1 01-11-2004 01:25 AM


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