GCC Cross-Compiler: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m →gcc |
|||
Line 178:
export PATH=$PATH:$PREFIX/bin
../gcc-x.x.x/configure --target=$TARGET --prefix=$PREFIX --disable-nls \
--enable-languages=c,c++ --without-headers
make all-gcc
make install-gcc
Line 187:
'''--without-headers''' tells [[GCC]] not to rely on any C library (standard or runtime) being present for the target.
'''--with-newlib''' is only necessary if you are compiling [[GCC]] <= 3.3.x. That version has [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8180 a known bug] that keeps --without-headers from working correctly. Additionally setting --with-newlib is a workaround for that bug.▼
'''--enable-languages''' tells [[GCC]] not to compile all the other language frontends it supports, but only C (and optionally C++).
▲
==== Summary ====
|