[fpc-pascal] fpmake addlibrary

Michael Van Canneyt michael at freepascal.org
Sun Aug 30 14:30:11 CEST 2020



On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:

> On Sun, 30 Aug 2020 14:16:14 +0200 (CEST)
> Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
> wrote:
>
>> On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:
>> 
>> > On Sun, 30 Aug 2020 13:38:12 +0200 (CEST)
>> > Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
>> > wrote:
>> > 
>> >> On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:
>> >> 
>> >> > Hi,
>> >> >
>> >> > AddLibrary('libbla.pp') creates under Linux "blalib.so".
>> >> > I want "bla.so".
>> >> >
>> >> > How to do that? 
>> >> 
>> >> AddLibrary('libbla.pp').SetExeName('bla'); 
>> >
>> > Creates "bla", not "bla.so". 
>> 
>> I had a look at the code, it indeed cuts off the extension.
>> That does not seem logical.
>> 
>> Maybe we need to add OutputFileName : string which simply sets the -o
>> option, SetExeName() can then just set OutputFileName.
>
> Is there a workaround for fpc 3.2.0?

Yes:

AddLibrary('libbla.pp').Options.Add('-obla.so')


Michael.


More information about the fpc-pascal mailing list