This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Need an OS/Arch free subset of libc.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Ken Mandelberg <km at mathcs dot emory dot edu>
- Cc: libc-help at sourceware dot org
- Date: Fri, 16 May 2014 22:33:38 +0200
- Subject: Re: Need an OS/Arch free subset of libc.
- Authentication-results: sourceware.org; auth=none
- References: <53766C76 dot 8060907 at mathcs dot emory dot edu>
On Fri, May 16, 2014 at 03:52:22PM -0400, Ken Mandelberg wrote:
> I have need to compile C code for the Motorola 68000 (not 68020) to
> run on a 68000 simulator. I already have a cross gcc compiler that
> works, but I'm missing the typical libc utility routines (sprintf,
> strcmp, memcpy, etc). In other words I'm missing the routines that
> are OS independent.
>
> I could use a standard Linux glibc or libc and just not use any of
> the OS related routines (read, brk, etc), but I haven't found one
> built for the 68000 (again, not the 68020), and the 68000 does not
> appear to be a supported target of the current glibc source.
>
> Since I have a working gcc cross compiler, and the routines I want
> are presumably architecture neutral I could just compile the subset
> if I could deal with the building logistics.
>
> So any of these would help me:
>
> 1) A built 68000 glibc/libc (elf format binaries)
> 2) A suggestion on how to configure the glibc build system to get
> 68000 binaries
> 3) A different mini libc compatible source library with just the
> OS/Arch free routines.
Did you tried gnulib? See:
http://www.gnu.org/software/gnulib/