[fpc-pascal] Linux x64 linking error (FPC_ABSMASK_SINGLE)

Victor Matuzenko vitek03 at gmail.com
Mon Mar 2 09:14:26 CET 2015


Hi!

I have a (very) huge project, and compilation of a shared library inside 
it fails at the linking stage:

/usr/bin/ld: </long/directory/file.o>: relocation R_X86_64_32S against 
`FPC_ABSMASK_SINGLE' can not be used when making a shared object; 
recompile with -fPIC
</long/directory/file.o>: could not read symbols: Bad value

How can I fix it? Should I pass -fPIC argument (and how to do this)?

fpc was built from trunk

uname -a:
Linux larion 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux

-- 
Victor Matuzenko (Виктор Матузенко)




More information about the fpc-pascal mailing list