Q: How to Cross Compile gcc 3.4 at and use my SDK lib ??
A: Read on.
Download:
ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ft...ils-2.14.tar.gz
ftp://sources.redhat.com/pub/newlib/newlib-1.11.0.tar.gz
ftp://ftp.gwdg.de/pub/misc/gcc/snapshots/...0040202.tar.bz2
And of course my SDK
mkdir gp32
mv binutils-2.14.tar.gz newlib-1.11.0.tar.gz gcc-3.3-20040202.tar.bz2 gp32
cd gp32
declare -x CFLAGS="-s "
tar xvfz binutils-2.14.tar.gz
cd binutils-2.14/
./configure --target=arm-elf --prefix=/opt/gp32_gcc && make
make install
cd ..
tar xvfz newlib-1.11.0.tar.gz
tar xvfj gcc-3.3-20040202.tar.bz2
cd gcc-3.4-20040202
ln -s ../newlib-1.11.0/newlib .
mkdir build
cd build
CFLAGS="-pipe -s "
../configure --target=arm-elf --prefix=/opt/gp32_gcc --with-cpu=arm9 --disable-threads --enable-languages=c,c++ --with-newlib --disable-multilib --with-gnu-ld --with-gnu-as
#The following is ONE LINE
make all \
CFLAGS_FOR_TARGET="-DTAG_CFLAGS_FOR_TARGET -s -march=armv4t -marm -msoft-float \
-ffast-math -fshort-enums -mstructure-size-boundary=8 -O2" \
CXXFLAGS_FOR_TARGET="-DTAG_CXXFLAGS_FOR_TARGET -s -march=armv4t -marm -msoft-float \
-ffast-math -fshort-enums -mstructure-size-boundary=8 -O -fno-implicit-templates" \
LIBCFLAGS_FOR_TARGET="-DTAG_LIBCFLAGS_FOR_TARGET -s -march=armv4t -marm -msoft-float \
-ffast-math -fshort-enums -mstructure-size-boundary=8 -O2" \
LIBGCC2_CFLAGS="-DIN_GCC -DCROSS_COMPILE -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -W -Wall \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -Dinhibit_libc \
-fno-inline -DTAG_LIBGCC_FLAGS -s -march=armv4t -marm -msoft-float -O2 -ffast-math -fshort-enums -mstructure-size-boundary=8"
make install
cd ../..
Now you arm cross compiler is installed in : /opt/gp32_gcc
You can now remove the gp32 dir.
Now set a Path to the new arm-elf-* files
export PATH=/opt/gp32_gcc
You can use the SDK03 from whereever you want.