Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-02

Getting project type

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Does Lazarus (or preferably FPC) define something that can be checked in source when it's building a dynamic library (.dll or .so)?

Usage case is that I want to build part of a larger project as a .so, and would like to be able to be able to exclude units that aren't relevant (so that users see tight binaries when they expect them). I'll probably have various -d settings, but would obviously prefer to reference standard defines where possible.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to leledumbo
leledumbo wrote
Seems not, I guess you'll have to use your custom defines. Unused units will be left out automatically if you use smartlinking, with prerequisites that the unit must not have any initialization/finalization section.

Thanks for that, just wanted to make sure I'd not missed anything.

The problem is that there's quite a lot of circular imports I'm having to break. Nothing insurmountable :-)

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email