For cross compilation I have to avoid reading from /usr/lib. It works well with "-Xd /usr/lib" at lazarus->compiler settings->additional (or however the english translation is). If I place the switch into fpc.cfg like
#ifdef x86_64
-Fl/usr/lib
#else
-Xd/usr/lib
-Fl/usr/lib32
#endifit fails with "Error: Illegal parameter: -Xd/usr/lib". Any idea how to solve?
Linux (Ubuntu 9.04)
Lazarus 0.9.29 (r22308M)
FPC 2.5.1 (Rev 14211)