This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Mathias: Newlib can be used as a linux runtime, starting with version 1.10.0. If you have a properly built and installed newlib, you should be able to do powerpc-eabi-gcc and the library (libc.a) will get linked in automagically. Use the same prefix you used when you built gcc. Libgloss is a small library of helper functions. I think it's mostly intended for the cross toolchain, I don't think you need it for code running on a target if you have newlib or glibc. Newlib is much smaller than glibc, but provides less functionality. If you don't need anything more than a basic libc, newlib is an excellent choice even in a linux environment. If you need the stuff that glibc provides (dynamic linking, locales, boatloads of other stuff) then you'll want to run with glibc. To build newlib for linux, specify --target=<xxx>-linux --build=<whatever your build machine is), i.e.: configure --target=powerpc-linux --build=i386-pc-cygwin I don't think you want a powerpc-eabi toolchain, I think you want a powerpc-linux toolchain. HTH, b.g. On Thu, Apr 25, 2002 at 05:52:40PM +0100, mschmid@ascona.de wrote: > Hi > > I have built a crossgcc running on cygwin for powerpc target. > With this crossgcc i successfuly built a linux kernel for my embeded > powerpc target. > Now i want to build applications to run on this linux system. > Therefore i built newlib with the following configuration: > > --target=powerpc-eabi-linux-gnu --host=i686-pc-cygwin > --build=i686-pc-cygwin > > I did run make and make install successfuly. > Now i have multiple directories with the built libraries. > I use the libc from the "lin" directory. > I am able to build a simple application using libc and libnosys. > But which files do i need to link against my applications if i want to use > system specific things like fork(), mkdir(), etc. . > > Does newlib provide this special stubs for linux within a library ? > What is libgloss for ? > Is it at all possible to build applications for linux with newlib or is it > better to use glibc ? > I searched the www, but i did not find answers to all my questions. > > Appreciate for any hints or information. > > Thanks > Mathias > > > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com > -- Bill Gatliff bgat@billgatliff.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |