[Lazarus] Shared library names

Marco van de Voort marcov at stack.nl
Mon Jun 11 17:15:18 CEST 2012

On Tue, Jun 05, 2012 at 10:02:52AM +0000, Mark Morgan Lloyd wrote:
> When building a shared library (.dll or .so), is it possible to append a 
> timestamp? i.e. something like  backend_$(IsoDate)_$(IsoTime).so  for a 
> result like  backend_2012-06-05_09:59:30.so

I did a few quick tests with $libsuffix, but can't seem to use constants or
other dates:

library libtest;

const mydate = '{$i %date%}';
const mydate2 = {$i %date%};

{$libsuffix mydate}
{$libsuffix mydate2}
{$libsuffix {$i %date%}}

Since afaik some preprocessor directive now expand constants (since Delphi
does), it might be worth a bugreport.

More information about the Lazarus mailing list