[Lazarus] Deep exe strip :)

Martin lazarus at mfriebe.de
Fri Oct 26 19:50:47 CEST 2012

On 26/10/2012 16:48, Bernd wrote:
> 2012/10/26 Martin <lazarus at mfriebe.de>:
>> Changing the buildmode should already rebuild the LCL (if something relevant
>> changed, compared to the previous buildmode)
> Is this in trunk (1.1) because I cannot observe the behavior you
> describe in 1.0.3, no matter what compiler or linker settings I set in
> my project options, they will only affect the project itself, I could
> not find a way to have the LCL compiled with any different settings
> than what is defined in the "Build Lazarus" -Settings. I think what
> the OP is missing (and I think it would be useful too) would be an
> option in the project settings, someting like:
> [x] ignore "build lazarus"-settings and compile LCL and other
> dependent packages with project settings.

It depends on the setting, I thing it only applies to build macros. But 
they can be used to change settings in other packages.

Anyway, the initial statement (that was even before the question of how 
to recompile packages) was "do we need a checkbox, to build smallest?". 
And I still say no. It can be done via build modes.
- It may not be easy at current.
- And there may be a case for a pre-defined build mode.
- But there is no case for the "build smallest" checkbox.

There may be a need to make certain setup tasks easier or more obvious. 
But that was not part of my original answer.

in each of your packages "tab: Other" > "Custom Options"

Then in your Project define under "IDE Macro Values" (for the desired 
build mode)
Macro Name: MyProjectOpts
Macro Value: -g- -O3 -XX -CX -Xs

and that should do.

More information about the Lazarus mailing list