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] |
On 1/3/07, Jeff Johnston <jjohnstn@redhat.com> wrote:This works.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
2) Manually specify things that top-level configure does for you:This partially works. It does not build multilib.
../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
Thanks, Jie
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |