[fpc-pascal] Mixing PIC non-PIC code/variables when linking a shared library

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Nov 18 11:39:45 CET 2014


On 18 Nov 2014, at 11:31, Mattias Gaertner wrote:

> On Tue, 18 Nov 2014 11:03:03 +0100
> Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
>> [...]
>> Yes, but "x86-64" is apparently bit too broad:
>> * it's added for x86-64/(freebsd, openbsd, netbsd, linux, solaris)
>> * for Darwin, -Cg is always on by default on all platforms, but this
>> is done in the compiler itself (because it's also on by default in  
>> the
>> system compilers)
>
> Thanks. I will add it to Lazarus.
> Why does the compiler not always add -Cg on Linux/x86-64?

Because the system compilers (gcc/clang) don't do so either.


Jonas



More information about the fpc-pascal mailing list