This is the mail archive of the crossgcc@sourceware.org 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] |
How do you create a bare metal cross compiler with C++ support? From the reading I have done, it appears that you need newlib for the general C functions and then you need glibc for the C++ stuff. Is this correct?
No. I use GCC/newlib bare metal and C++ frequently. GLIBC and Newlib have equivalent functionality. Newlib is intended for embedded targets.
Here's an old script I used for building an powerpc-eabi target. Note that it doesn't show the build for binutils, and there are some hard coded paths for my own convenience ;)
../gcc-3.3/configure \ --target=powerpc-eabi \ --prefix=/tools/gnu/gcc/3.3/powerpc-eabi \ --with-newlib \ --enable-languages="c c++"
-- Michael N. Moran (h) 770 516 7918 5009 Old Field Ct. (c) 678 521 5460 Kennesaw, GA, USA 30144 http://mnmoran.org
"So often times it happens, that we live our lives in chains and we never even know we have the key." "Already Gone" by Jack Tempchin (recorded by The Eagles)
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |