Recent

Author Topic: Rebuild Lazarus  (Read 5256 times)

djljktq_81

  • Newbie
  • Posts: 2
Rebuild Lazarus
« on: September 12, 2017, 07:22:23 pm »
Hello! Tell me, please, what compilation options are used when building Lazarus.exe, which comes with the distribution. I could not get exactly this file. Maybe some other compiler can be used for this?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Rebuild Lazarus
« Reply #1 on: September 12, 2017, 09:12:32 pm »
Have a look at
  tools\install\win\build-lazarus.bat


djljktq_81

  • Newbie
  • Posts: 2
Re: Rebuild Lazarus
« Reply #2 on: September 13, 2017, 05:37:50 pm »
Thank you! But, unfortunately, this did not help.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Rebuild Lazarus
« Reply #3 on: September 13, 2017, 06:07:58 pm »
See bigide rule in the top-level Makefile

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Rebuild Lazarus
« Reply #4 on: September 13, 2017, 07:53:18 pm »
It is unlikely that you can build an identical (byte by byte the same) lazarus.exe from inside the IDE. (At least not without major effort)

First of all, the released exe is build *with* debug info, but then stripped (using strip.exe). This may result in different file (strip.exe may strip more data or less data than fpc would add/omit, if compiling without debug info)

Also I do not know, if the order of steps matters, and that again may be diff in the Makefile.

The Makefile itself will contain default options, on top of which the options in the build-lazarus.bat are applied.

-----------
The released lazarus.exe is generated using the build-lazarus.bat.

It is build using an svn export of fpc. But the same export is shipped with the installer, so that should not make any difference.

---------------
One last note.

IIRC FPC, adds the current date to the exe. So the exe will always differ.

You need to use a binary diff, to check equality, and ignore the diff in the date.

 

TinyPortal © 2005-2018