User:DanielDrake/GCC cross compile: Difference between revisions
Jump to navigation
Jump to search
DanielDrake (talk | contribs) (Created page with 'Compiling a gcc-4.8 (October 2012) ARM cross compiler on x86: * Install binutils-arm-linux-gnu from Fedora * Inside gcc checkout: {{{ export AR_FOR_TARGET=/usr/bin/arm-linux-g…') |
DanielDrake (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
* Inside gcc checkout: |
* Inside gcc checkout: |
||
<pre> |
|||
{{{ |
|||
export AR_FOR_TARGET=/usr/bin/arm-linux-gnu-ar |
export AR_FOR_TARGET=/usr/bin/arm-linux-gnu-ar |
||
export AS_FOR_TARGET=/usr/bin/arm-linux-gnu-as |
export AS_FOR_TARGET=/usr/bin/arm-linux-gnu-as |
||
Line 18: | Line 18: | ||
cd build |
cd build |
||
../configure --target=arm-linux-gnueabi --enable-languages=c --disable-threads --without-headers --disable-nls --disable-decimal-float --disable-plugin --disable-libssp --disable-libgomp --disable-shared --with-system-zlib --disable-libmudflap --disable-libquadmath --with-system-libunwind --disable-libatomic |
../configure --target=arm-linux-gnueabi --enable-languages=c --disable-threads --without-headers --disable-nls --disable-decimal-float --disable-plugin --disable-libssp --disable-libgomp --disable-shared --with-system-zlib --disable-libmudflap --disable-libquadmath --with-system-libunwind --disable-libatomic |
||
</pre> |
|||
}}} |
|||
Those configure flags are quite important to avoid a variety of failures/incompatibilities. Fedora's cross-gcc.spec might help find more. |
Those configure flags are quite important to avoid a variety of failures/incompatibilities. Fedora's cross-gcc.spec might help find more. |
||
Now add $(pwd)/gcc to PATH and run cross-gcc. |
Latest revision as of 20:13, 8 October 2012
Compiling a gcc-4.8 (October 2012) ARM cross compiler on x86:
- Install binutils-arm-linux-gnu from Fedora
- Inside gcc checkout:
export AR_FOR_TARGET=/usr/bin/arm-linux-gnu-ar export AS_FOR_TARGET=/usr/bin/arm-linux-gnu-as export DLLTOOL_FOR_TARGET=/usr/bin/arm-linux-gnu-dlltool export LD_FOR_TARGET=/usr/bin/arm-linux-gnu-ld export NM_FOR_TARGET=/usr/bin/arm-linux-gnu-nm export OBJDUMP_FOR_TARGET=/usr/bin/arm-linux-gnu-objdump export RANLIB_FOR_TARGET=/usr/bin/arm-linux-gnu-ranlib export STRIP_FOR_TARGET=/usr/bin/arm-linux-gnu-strip export WINDRES_FOR_TARGET=/usr/bin/arm-linux-gnu-windres export WINDMC_FOR_TARGET=/usr/bin/arm-linux-gnu-windmc mkdir -p build cd build ../configure --target=arm-linux-gnueabi --enable-languages=c --disable-threads --without-headers --disable-nls --disable-decimal-float --disable-plugin --disable-libssp --disable-libgomp --disable-shared --with-system-zlib --disable-libmudflap --disable-libquadmath --with-system-libunwind --disable-libatomic
Those configure flags are quite important to avoid a variety of failures/incompatibilities. Fedora's cross-gcc.spec might help find more.
Now add $(pwd)/gcc to PATH and run cross-gcc.