This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Configuring and building libgloss


Jie Zhang wrote:
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.


Yes, I just noticed this. It actually tries to configure multilib but unfortunately ends up creating a Makefile only in one place. Oh well, option 1 is a better choice anyway.


Thanks,
Jie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]