Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 12-26-2006, 08:59 AM   #1
LQ Newbie
Registered: Oct 2006
Posts: 5

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

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.

Old 12-27-2006, 03:58 AM   #2
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 261

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.


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 07:49 AM
GNU based c++ cross compiler unable to link c library k_taid Programming 1 06-29-2005 10:38 AM
Help with GNU C++ Compiler please... Stiltz Linux - Software 1 03-15-2005 10:17 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 08:26 AM
Where to get compiler gnu c sofasurfer Linux - Games 1 01-11-2004 02:25 AM

All times are GMT -5. The time now is 07:36 AM.

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