#!/bin/bash set -e # use binaries from odcctools # CC=gcc-3.4 configure --target=i386-darwin --prefix=/opt/cross --with-syslibroot=/opt/cross/MacOSX10.4u.sdk # for i386-darwin use ld from odcctools-9.2-ld.tgz - configure as above and manually copy only ld #fpcmake -T i386-linux,i386-darwin,powerpc-darwin,i386-win32 -r make distclean make all install INSTALL_PREFIX=/opt/cross OPT="-gl -XX -CX" make distclean FPC=ppc386 make crossall crossinstall CPU_TARGET=i386 OS_TARGET=darwin CROSSBINDIR=/opt/cross/bin BINUTILSPREFIX=i386-darwin- INSTALL_PREFIX=/opt/cross OPT="-gl -XX -CX -Xd -Fl/opt/cross/MacOSX10.4u.sdk/usr/lib" make distclean FPC=ppc386 make crossall crossinstall CPU_TARGET=powerpc OS_TARGET=darwin CROSSBINDIR=/opt/cross/bin BINUTILSPREFIX=powerpc-darwin- INSTALL_PREFIX=/opt/cross OPT="-gl -XX -CX -Xd -Fl/opt/cross/MacOSX10.4u.sdk/usr/lib" make distclean FPC=ppc386 make crossall crossinstall CPU_TARGET=i386 OS_TARGET=win32 CROSSBINDIR=/opt/cross/bin BINUTILSPREFIX=i386-mingw- INSTALL_PREFIX=/opt/cross OPT="-gl -XX -CX"