For FreePascal 2.6.0 I use this script to build crosscompiler and install it into /opt/fpc:
Code:
export PPCBIN=/usr/lib/fpc/2.6.0/ppcx64
export ANDROID_BIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/bin

if [ -d ./fixes_2_6 ]; then
  svn update ./fixes_2_6
else
  svn co http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 ./fixes_2_6
fi

svn export ./fixes_2_6 /tmp/fixes_2_6

cd /tmp/fixes_2_6

make distclean
make FPC=$PPCBIN build OS_TARGET=linux CPU_TARGET=arm OPT="-dFPC_ARMEL" CROSSBINDIR=$ANDROID_BIN
sudo make FPC=`pwd`/compiler/ppcrossarm PREFIX=/opt/fpc crossinstall OS_TARGET=linux CPU_TARGET=arm OPT="-dFPC_ARMEL" CROSSBINDIR=$ANDROID_BIN
rm -Rf /tmp/fixes_2_6
Instead of $ANDROID_NDK you should put your own path, because this variable available only in ArchLinux. Also don't forget to change ppcx64 to ppc386 if you use 32-bit system.