[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:03:03 CET 2014


On 18 Nov 2014, at 00:09, Mattias Gaertner wrote:

> On Mon, 17 Nov 2014 16:13:40 +0100
> Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
>> Yes, fpcmake automatically adds -Cg/-fPIC for x86-64 platforms,
>> exactly because of this issue.
>
> Does "automatically" means here "always on x86_64"?

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)


Jonas



More information about the fpc-pascal mailing list