Re: getpagesize() problems

Michele Alberti <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
First of all, thanks for your reply.

> Uh, you are using the standard libc headers, this cannot work well in
> the general case.

Could you explain better?
I use the headers man pages said.

>
> For dietlibc, you are provided a tool called "diet".
>
> After "make install" it is in /opt/diet/bin.  Put that in your $PATH and
> then compile like this:
>
>  $ diet gcc -o pagesize pagesize.c

I know about "diet" but I don't want/ or can not use it on the project.
I know that example works well with "diet gcc (...)" compiling and linking but
I have to use "dietlibc.a" in linking without "diet".
My Makefile looks like this:

cc -static -o output <some *.o files> -nostdlib -nostartfiles
../dietlibc.a -lgcc

and it works since dietlibc 0.31.
Is there a way to use dietlibc in that way without "diet"? or is a mistake?
Thanks again for your support.
Regards,
michele
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.