Building cross-compiler gcc

atgraham_at_gmail.com
Date: 03/23/05


Date: 22 Mar 2005 20:23:09 -0800

I'm currently attempting to build gcc-3.4.3 for an embedded
PPC405/vxWorks platform. I'm building the cross-compiler on a
Linux/i686 running the Debian 3.1 distribution with a 2.6.8 kernel.

The problem is that I'm compiling
--with-headers={vxworks-path-goes-here} and in order for that to work,
it needs several compiler switches added everytime it uses the
generated compiler to compile libstdc++, libgcc, libiberty, etc. I
cannot find an easy way to do this. I had to modify gcc/Makefile.in
for libgcc to compile, now it's complaining about libiberty, and I'm
starting to dread having to do this for each and every
subdirectory/library that is compiled.

Despite my fruitless searching, I'm still hoping there's something I
can do, like configure --with-target-cflags="..."

Any ideas?
Aaron



Relevant Pages

  • amd64 bitops fix for -Os
    ... filesystem, the kernel mostly hangs. ... When optimizing for speed, the generated code is such that the flags ... Obviously the asm statement must not rely on the compiler setting up ... -inline long find_first_zero_bit(const unsigned long * addr, ...
    (Linux-Kernel)
  • Re: amd64 bitops fix for -Os
    ... > kernel build. ... because its inline asm assumes at least one iteration ... the generated code is such that the flags ... although in a perfect world the compiler would be ...
    (Linux-Kernel)
  • Re: Problem setting up lm-sensors
    ... >> they built the kernel. ... >> Why does the Makefile not use .config? ... >> I assume no one wants to see that 727 line Makefile. ... >> question as to what compiler I should use. ...
    (comp.os.linux.misc)
  • Re: Micro$haft desperate! Buy Windoze 7, get (virtual) XP free!
    ... it's not even Windows, it's what MS's C++ compiler does. ... Because device drivers in operating systems with monolithic kernels, and in many operating systems with hybrid kernels, execute within the operating system kernel, it is possible to run the kernel as a 32-bit process while still supporting 64-bit user processes. ... Leopard with no trouble. ... rather not having 64-bit Carbon when the apps that want all that memory use Carbon. ...
    (comp.sys.mac.advocacy)
  • Newbie Q: spca5xx webcam driver installation problem
    ... with the included default makefile. ... Building SPCA5XX driver for 2.5/2.6 kernel. ... # Setup the tools ... # Setup compiler warnings ...
    (comp.os.linux.setup)