LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to tell compiler to not to use GNU library (glibc) (http://www.linuxquestions.org/questions/linux-kernel-70/how-to-tell-compiler-to-not-to-use-gnu-library-glibc-513760/)

P.S.R.K.S.PRASAD 12-26-2006 07:59 AM

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

jayjwa 12-27-2006 02:58 AM

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.


All times are GMT -5. The time now is 12:44 PM.