[Lazarus] RE : RE : compilation erro

Antonio Fortuny a.fortuny at sitasoftware.lu
Mon Dec 5 15:27:41 CET 2011


Done.
Same error
This time I've included in search path:
$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)  --> lclproc
$(LazarusDir)/components/lazutils/lib/$(TargetCPU)-$(TargetOS)	--> 
FileUtils (called by lclproc)
and excluded LCL package
Errors:
/usr/bin/ld: /usr/lib64/lazarus/lcl/units/x86_64-linux/lclproc.o: 
relocation R_X86_64_32S against `.data' can not be used when making a 
shared object; recompile with -fPIC
/usr/lib64/lazarus/lcl/units/x86_64-linux/lclproc.o: could not read 
symbols: Bad value
SitaUdfLib.lpr(11) Error: Error while linking


Antonio.

Le 05/12/2011 15:11, Ludo Brands a écrit :
>> In fact I don't really need LCL package but lclproc unit because my
>> project needs UTF-8 functions. Anyway, when I disable the LCL package
>> and include the libtary containing the lclproc unit I get the
>> same error
>> but, this time with a unit of my project.
>>
>
> Same solution, rebuild your project with -fPIC (or -Cg which is the same).
> On x86_64 the RTL is already build with PIC by default.
>
> Ludo
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>








More information about the Lazarus mailing list