[Lazarus] Do FPC generates old EABI code?

Kjow antispammoni at gmail.com
Mon Dec 14 18:09:38 CET 2009


Alexsander Rosa wrote:
> BTW, how do you customize your script?

Copy and past from the Compiler Options dialog into any text editor. :-)

Here is one of my scripts which compiles all required packages first, then
the actual project.

As you will see, nothing fancy, just direct paths (uncheck relative paths
option before I copied text from IDE) which are valid on my system only. I
run 64-bit Linux and FPC normally. I have a similar script for i386-win32
target. I could obviously reduce the script by introducing more path
variables, but I didn't bother. :-)

-------------[ crossbuild-i386-linux.sh ]-------------------------
#!/bin/sh

clear

FPC=/opt/fpc_2.3.1/i386-linux/lib/fpc/2.3.1/ppc386
STDPARAMS='-MObjFPC -Sai -O1 -Pi386 -gl -ve'

# clean-up previous compiled units
rm
/home/graemeg/programming/3rdParty/tiOPF2/Source/Compilers/FPC/lib/i386-linux/*
rm /home/graemeg/programming/fpgui/lib/i386-linux/*
rm
/home/graemeg/programming/MasterMaths/m2_system/Source/tutoradmin/units/i386-linux/*

$FPC $STDPARAMS \
  -Fi/home/graemeg/programming/3rdParty/tiOPF2/Source/Core/ \
  -Fu/home/graemeg/programming/3rdParty/tiOPF2/Source/Core/ \
  -Fu/home/graemeg/programming/3rdParty/tiOPF2/Source/Options/ \
  -Fu/home/graemeg/programming/3rdParty/tiOPF2/Source/Compilers/FPC/ \
  -Fu. \

-FU/home/graemeg/programming/3rdParty/tiOPF2/Source/Compilers/FPC/lib/i386-linux/
\
  -vm5024 \
  -dLINK_CSV \
  -dLINK_TAB \
  -dLINK_FBLx \
  -dLINK_SQLDB_IB \
  -dLINK_SQLDB_PQx \
  -dUseCThreads -Xd \
  /home/graemeg/programming/3rdParty/tiOPF2/Source/Compilers/FPC/tiOPF.pas
echo ""

$FPC $STDPARAMS \
  -Fi/home/graemeg/programming/fpgui/src/corelib/x11/ \
  -Fu/home/graemeg/programming/fpgui/src/corelib/ \
  -Fu/home/graemeg/programming/fpgui/src/gui/ \
  -Fu/home/graemeg/programming/fpgui/src/gui/db/ \
  -Fu/opt/lazarus/packager/units/i386-linux/ \
  -Fu/home/graemeg/programming/fpgui/src/corelib/x11/ \
  -Fu. \
  -FU/home/graemeg/programming/fpgui/lib/i386-linux/ \
  -vm5024 \
  -Xd \
  /home/graemeg/programming/fpgui/src/corelib/x11/fpgui_toolkit.pas
echo ""

$FPC $STDPARAMS \
  -Fu/home/graemeg/programming/fpgui/extras/tiopf/gui/ \

-Fu/home/graemeg/programming/3rdParty/tiOPF2/Source/Compilers/FPC/lib/i386-linux/
\
  -Fu/home/graemeg/programming/fpgui/lib/i386-linux/ \
  -Fu/home/graemeg/programming/fpgui/extras/tiopf/ \
  -Fu. \
  -FU/home/graemeg/programming/fpgui/lib/i386-linux/ \
  -vm5024 \
  -dLINK_CSV \
  -dLINK_TAB \
  -dLINK_FBLx \
  -dLINK_SQLDB_IB \
  -dLINK_SQLDB_PQx \
  -dUseCThreads -Xd \
  /home/graemeg/programming/fpgui/extras/tiopf/tiOPFfpGUI.pas
echo ""

$FPC $STDPARAMS \
  -Fi/home/graemeg/programming/MasterMaths/m2_system/Source/ \
  -Fu/home/graemeg/programming/MasterMaths/m2_system/Source/ \

-Fu/home/graemeg/programming/MasterMaths/m2_system/Source/tutoradmin/components/
\
  -Fu/home/graemeg/programming/fpgui/lib/i386-linux/ \

-Fu/home/graemeg/programming/3rdParty/tiOPF2/Source/Compilers/FPC/lib/i386-linux/
\
  -Fu/home/graemeg/programming/MasterMaths/m2_system/Source/tutoradmin/ \
  -Fu. \

-FU/home/graemeg/programming/MasterMaths/m2_system/Source/tutoradmin/units/i386-linux/
\
  -FEBin/i386-linux/ -otutoradmin \
  -dUseCThreads \
  -dLINK_CSV \
  -dLINK_TAB \
  -dLINK_FBLx \
  -dLINK_SQLDB_IB \
  -dLINK_SQLDB_PQx \
  -O- -Xd \

/home/graemeg/programming/MasterMaths/m2_system/Source/tutoradmin/tutoradmin.lpr

-------------------------------------------------



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list