This should do what you're after:
$ gcc -static -o main main.c
EDIT: Actually, that's probably not what you were after... Linking statically against libc without specifying -static might need a bit more work as there is an implicit -lc on the linker's command line - see:
$ gcc -v -o main main.c
EDIT: I ran nm on the compiled executable, after running:
$ gcc -o main main.c /usr/lib/libc.a
And there is one reference to the shared glibc:
w pthread_setcancelstate@@GLIBC_2.0
Don't know if I've helped at all or just babbled...
~sind