compiler directives for shared library generation

Original Reporter info from Mantis: werner.bochtler@zkrd.de
  • Reporter name: Werner Bochtler

Description:

Support of the following delphi/kylix directives would be great:

{$SOPREFIX ''}
{$SOSUFFIX ''}
{$SOVERSION ''}
{$SONAME ''} // only modifies the internal library name

{$LIBPREFIX ''} // is defined in FPC but seems not work (see below)
{$LIBSUFFIX ''} // is defined in FPC but seems not work (see below)
{$LIBVERSION ''}
{$LIBNAME ''}

---------------------------------

Using {$LIBPREFIX 'A'} and {$LIBSUFFIX 'B'} results in the
following error:

Free Pascal Compiler version 2.1.1 [2007/01/16] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling SharedLibrary.dpr Linking A_N8@^@^@^@^@ibrary.dpr^@^@^S^A^@^@^@^@^@^@!1"^@^@^@^@^@^@^@^@^@^@^@^@^@1^@¬N^LO8@ÜN8@%^E@^@^@^@^@ibrary_B.so Error: Error while linking

Mantis conversion info:

  • Mantis ID: 8128
  • Version: 2.2.0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information