About Us
Museum

Tree-criss-cross

From RFID Guardian

Let $GCC/ be the root of the cygwin cross compiler build.
Let $BF/ be the root of the BlackFin criss-cross compiler build
ensure we have gmp.h and 
cd $GCC/cygwin-copy
mkdir usr
scp -r fspc397:/usr/include usr/
scp -r fspc397:/usr/lib usr/
cd $GCC
+ download gcc-4.3.2.tar.bz2
+ download binutils-2.19.tar.bz2
+ download zlib-1.2.3.tar.bz2
Untar all
cd gcc-4.3.2
ln -s ../binutils-2.19/bfd
ln -s ../binutils-2.19/binutils/
ln -s ../binutils-2.19/gas/
ln -s ../binutils-2.19/gprof/
ln -s ../binutils-2.19/ld/
ln -s ../binutils-2.19/opcodes/
edit libstdc++-v3/crossconfig.m4 to add a stanza *-cygwin)
I added it to the -gnu case but no idea if that is correct
cd $GCC
mkdir build-i686-cygwin
cd build-i686-cygwin
../gcc-4.3.2/configure --program-prefix=i686-cygwin- --prefix=$GCC/install-i686-cygwin --target=i686-pc-cygwin --with-sysroot=$GCC/cygwin-copy --disable-shared --enable-sjlj --enable-languages=c,c++ --disable-multilib
make
cd $GCC
cd zlib-1.2.3
./configure CC=$GCC/install-i686-cygwin/bin/i686-cygwin-gcc --prefix=$GCC/install-i686-cygwin --libdir=$GCC/install-i686-cygwin --host=i686-pc-cygwin
make
make install
Check for zlib.h and libz.a in the install-i686-cygwin dirs
cd $BF