Configuring and building libgloss

Jie Zhang jzhang918@gmail.com
Wed Jan 3 08:01:00 GMT 2007


On 1/3/07, Jeff Johnston <jjohnstn@redhat.com> wrote:
> Jie Zhang wrote:
> > Hi,
> >
> > Is there a way to build libgloss without newlib? The instructions in
> > doc/porting.texi:
> >
> > $ ../src/libgloss/configure --verbose --target bfin-elf
> > $ make
> >
> > don't work for me. When make, the host gcc is used instead of target
> > cross gcc.
> >
>
> That document is out of date with regards to this.
>
> Libgloss is relying on some variables being set in the top-level
> configuration.  As well, libgloss needs to use newlib's header files.
>
> There are two alternatives:
>
> 1) configure as you would normally do for top-level configure
>
>     perform: make all-target-libgloss install-target-libgloss
>
>     This will configure newlib, but only builds libgloss
>
This works.

> 2) Manually specify things that top-level configure does for you:
>
> ../src/libgloss/configure --host=bfin-elf CC=bfin-elf-gcc AR=bfin-elf-AR
> LD=bfin-elf-ld RANLIB=bfin-elf-ranlib AS=bfin-elf-as CCAS=bfin-elf-gcc
>
>     make CFLAGS=-I$PATH/src/newlib/libc/include
>
This partially works. It does not build multilib.

Thanks,
Jie



More information about the Newlib mailing list