On Mon, 10 Dec 2007 14:24:43 +0000
Sam Liddicott <[EMAIL PROTECTED]> wrote:

> 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.

Thanks. Applied.

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to