That's great ;)
Well done, I'll try it tomorrow.
This modified create_fpc_deb.sh (from lazarus/tools/install) will handle
the environment variables OS_TARGET and CPU_TARGET and detect when a
cross compiler is being built if CPU_TARGET differs from `dpkg
--print-architecture`
e.g.
OS_TARGET=linux CPU_TARGET=powerpc ./create_fpc_deb.sh fpc ~/lazarus/fpc
It requires you to have the right binutils already installed, but
manages to find them, and add the Depends to the deb being build.
Installing the right binutils deb is already simple:
apt-get -source binutils
apt-get build-dep binutils
cd binutils-2.18
TARGET=powerpc fakeroot debian/rules binary-cross
dpkg -i ../binutils-powerpc-linux-gnu_2.18-0ubuntu3_i386.deb
2 things I'm not sure about
1. whether or not OS_TARGET is meaningful here
2. what (if anything) should be put into /etc/fpc.cfg when the
cross-compiler package is installed.
Sam
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11.06
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives