[fpc-pascal] Setting library-path

Koenraad Lelong fpascal at brouwerij.homelinux.net
Tue Dec 20 22:22:51 CET 2005


Hi,
I'm trying to compile the graph-examples for arm. fpctris compiles, but 
the linking fails, it seems to find the wrong crti.o file. I added 
-Fl/path_to_good_file with no luck, and -Xr/path_to_good_file, with the 
same result. If I add -vt I see that a huge number of paths are searched 
for files, only for crti.o (and later on crtn.o) only two paths are 
searched : /lib and /usr/lib.
Can someone please point me at what I'm missing here ?
My command-line :
ppcrossarm -Xc -Xr/opt/arcom/arm-linux/lib -FUunits/arm-linux 
-Fl/opt/arcom/arm-linux/lib fpctris.pp
Thanks,
Koenraad Lelong.
P.S. some other files (e.g. gravwars) don't even compile for i386 : 
/usr/bin/ld: cannot find -lvga.



More information about the fpc-pascal mailing list