Compiling with gcc - leave out liberies

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Leadorn

Compiling with gcc - leave out liberies

Post by Leadorn »

Hi all!!

Does anyone know the command to leave out c
standard liberies when compiling.

If I compile this code the binary file size becomes 1024.

int main(void)
{
repeat: goto repeat;
}
Guest

RE:Compiling with gcc - leave out liberies

Post by Guest »

>On 2002-05-10 15:31:21, Leadorn wrote:
>Hi all!!
>
>Does anyone know the command to leave out c
>standard liberies when compiling.
>
>If I compile this code the binary file size becomes 1024.
>
>int main(void)
> {
> repeat: goto repeat;
> }

If you read through the developer guides found on this site, I think it will tell you the -freestanding switch will do the trick.
Post Reply