Jonas:

Where in Lazarus 1.0.14 do I put in the compiler command line option? -WM10.9

Project Options->Compiler Options->Compilation->Compiler->Command-> $(CompPath) -WM10.9

And when I use this setting -WM10.9, this means that I can only execute the resulting binary on Mavericks and above?

But if I use -WM10.6, then this means that I am targeting for Snow Leopard 10.6 and above?

Thank you for breaking this down today.

Cheers,

md

On 3/10/2014 3:46 PM, Jonas Maebe wrote:

On 10 Mar 2014, at 19:07, m...@rpzdesign.com wrote:

Unfortunately, your suggestion while appreciated does not work.

For example, the actual function "__divdi3" actually lives in /usr/lib/system/libcompiler_rt.dylib

This library does not exist on Snow Leopard. But it does exist on Mavericks. (I do not have Lion/Mtn Lion available)
It's the equivalent of libgcc for LLVM.
{$LINKLIB gcc_s} does not work -> Library NOT found by FPC compiler/linker {$LINKLIB compiler_rt} does not work -> Library NOT found by FPC compiler/linker {$LINKLIB /usr/lib/system/libcompiler_rt.dylib} does not work -> Library NOT found by FPC compiler/linker {$LINKLIB /usr/lib/libgcc_s.1.dylib} does not work -> Library NOT found by FPC compiler/linker

I also tried using:
{$LIBRARYPATH /usr/lib/system}
{$LINKLIB compiler_rt}

I've looked into it. In short:
* make sure you are using FPC 2.6.2 or later.
* do *not* add any linklib statement
* use the compiler command line parameter -WM10.6 (if you want to target minimally Mac OS X 10.6) ... -WM10.9 (if you want to target OS X 10.9)


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to