This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cross_compiler [2007-06-07 09:12] – created nik | cross_compiler [2007-06-07 09:15] (current) – nik | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== building a cross compiler from source | + | === building a cross compiler from source === |
| * a shell script to download, patch, and build gcc+glibc toolchains that run on Linux, Mac OS X, or Cygwin and generate Linux executables: | * a shell script to download, patch, and build gcc+glibc toolchains that run on Linux, Mac OS X, or Cygwin and generate Linux executables: | ||
| Line 21: | Line 21: | ||
| * missing stdio files + asm files -> kernel source must be configured (make menuconfig) | * missing stdio files + asm files -> kernel source must be configured (make menuconfig) | ||
| * arch- and proc- aliases werent automatically created (ln -s arch-sa1110 arch ,.etc) | * arch- and proc- aliases werent automatically created (ln -s arch-sa1110 arch ,.etc) | ||
| - | * strong_alias (__old_sys_nerr, | + | * strong_alias |
| * need to patch glibc-2.2.5 fr arm-linux (to avoid " | * need to patch glibc-2.2.5 fr arm-linux (to avoid " | ||
| stumbling darwinian | stumbling darwinian | ||
| + | * make "CC=cc -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" | ||
| + | * unstumbled -> working PPCtoARMtoolchain | ||
| - | make "CC=cc -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" | ||
| - | unstumbled -> working PPCtoARMtoolchain | ||
| + | ==== David A. Desrosiers All-in-One Single-Pass Cross-Compiler Build Script Doohickey (modified) ==== | ||
| - | David A. Desrosiers All-in-One Single-Pass Cross-Compiler Build Script Doohickey (modified) | + | < |
| - | + | ||
| - | </code> | + | |
| #!/bin/bash | #!/bin/bash | ||
| # | # | ||