I did it and now all I get is:
fpc test.pas -MDelphi (w katalogu /home/tomek/Test)
Free Pascal Compiler version 2.6.0 [2011/12/23] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling test.pas
test.pas(17,1) Warning: Library libopenjpeglinx86.a not found, Linking may fail !
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find libopenjpeglinx86.a
Kompilacja nie powiodła się
test.pas(17,1) Error: Error while linking
test.pas(17,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)