[Lazarus] DEBUG=1

Adriaan van Os fpc at microbizz.nl
Tue Jun 17 17:00:14 CEST 2008


Henry Vermaak wrote:
> 2008/6/17 Vincent Snijders <vsnijders at quicknet.nl>:
>> I hardly use the makefiles directly during development, but only the Build Lazarus
>> tool in the IDE, so I cannot pass this DEBUG=1. What does it actually do? What are
>> the corresponding compiler flags?
>>
> 
> this is in the Makefile:
> 
> ifdef DEBUG
> override FPCOPT+=-gl
> override FPCOPTDEF+=DEBUG
> endif

Note that on Mac OS X 10.5, due to bugs in the Apple linker, it may be advisable to pass -gw2l 
instead of -gl (which is why I also pass OPT="-gw2l" during Make builds, apart from the DEBUG=1).

Regards,

Adriaan van Os



More information about the Lazarus mailing list