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
create_fpc_deb.sh
Description: application/shellscript
