Re: getpagesize() problems
Michele Alberti <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
2009/8/11 Pascal Terjan <[email protected]>: > Le mardi 11 août 2009 à 09:02 +0200, Michele Alberti a écrit : >> > You would need something like -I/usr/lib/dietlibc/include/ >> >> Look at the command I posted before, I link the "dietlibc.a" that >> should do what you said. > > Why ? > Compiling (and first preprocessing) and linking are two different > operations... Maybe I'm wrong but: $cc -static -o output <some *.o files> -nostdlib -nostartfiles ../dietlibc.a -lgcc this command compile and link. And "-nostdlib ../dietlibc.a" is for telling ld to use dietlibc.a and not stardard glibc library. Am I wrong? Why?