[Lazarus] Graphics32 carbon

dmitry boyarintsev skalogryz.lists at gmail.com
Wed Jun 2 08:08:06 CEST 2010


On Wed, Jun 2, 2010 at 4:16 AM, CA Gorski <fpc-pascal-list at artelogic.com> wrote:
> When I try to compile Graphics32 (http://graphics32.org) against carbon I
> get
>
> Error: Generating PIC, but reference is not PIC-Safe
>
> for GR32_Blend.pas
> lea edi, [eax+DivTable]
>
> Why is FPC generating PIC here?

It's default mode for darwin target. Try to compile the project with
the additional  compiler option (Project Compiler
Options->Other->Custom options): -Cg-
This should disable PIC code generation.

fpc-pascal mailing list is the better place to ask about it:
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

thanks,
dmitry




More information about the Lazarus mailing list