Re: Cross Compiling dietlibc

ht-lab <[email protected]> Sun, 25 Nov 2012 16:52:41 +0000
Newsgroups gmane.linux.lib.dietlibc
Organization ht-lab
Message-ID <[email protected]>
On 24/11/2012 17:18, Felix von Leitner wrote:
>> I am trying to cross compile dietlibc for a PC104 486 SBC:
>> make ARCH=i386 CROSS=i486-elf- all
> dietlibc is a libc for Linux.
> If will only work and compile if the target platform is Linux.
> Otherwise major adjustments will be necessary.
>
> Your compiler does not define the preprocessor symbol __linux__, which
> means it targets something other than Linux.
>
> Felix
>
Hi Felix,

Thanks, changing the cross compiler to i486_linux solved the rpc lib 
issues.  I am planning to write a thin layer (int 0x80, crt0, perhaps 
malloc) to sit "below" dietlibc, nothing complicated just enough to 
compile some simple programs.

Regards,
Hans.