[fpc-pascal] FPC shared libraries for Mac OS X

Werner Bochtler werner.bochtler at zkrd.de
Wed Aug 20 09:22:00 CEST 2008

Jonas Maebe wrote:
> On 19 Aug 2008, at 12:55, Werner Bochtler wrote:
>> Can anyone give me a hint how to set the 'install_name', 
>> 'compatibility_version' and 'current_version' in FPC shared
>> libraries for Mac OS X?
> In exactly the same way as for a C shared library: by passing the 
> appropriate flags to the linker.
> ->
> fpc -k"-install_name somename" -k"-compatibility_version 1.2.3" 
> -k"-current_version 11.12.13" mysharedlib.pp

This works fine for the commandline but if I try to add e.g.
-k"-install_name libTest.1.dylib" to my local configuration file fpc.cfg
I get the following error message:

ld: unknown option: -install_name libTest.1.dylib
/usr/bin/libtool: internal link edit command failed

Any ideas?

Thanks in advance,


More information about the fpc-pascal mailing list