Regenerate Makefiles ?
Michael Van Canneyt <michael <at> freepascal.org>
2007-04-01 10:08:06 GMT
Hello,
In order to be able to create shared libraries with the LCL
on X86_64 systems, the LCL must be compiled as PIC code when
on this platform. The RTL and FCL are already compiled with
the PIC option (-Cg). fpcmake automatically adds this option
to the Makefile if it detects the X86_64 CPU.
However, the Lazarus makefile seems to be generated with an older
version of fpcmake, and does not contain the -Cg option, therefore
the LCL is not compiled with it.
I remade the Makefiles, and everything seems to work OK.
Could someone of the Lazarus crew do the same (with a
recent enough fpcmake, obviously) and commit it ?
Beware, in order to remake them, you'll need to change the
'fcl' entry under [require] with at least
fcl-base fcl-image fcl-xml fcl-db fcl-registry
or fpcmake will complain about package fcl not being found.
This needs to be done in ALL Makefile.fpc files in the lazarus
tree. (it takes some work :) )
After that, a simple
fpcmake -Tall -r
in the top lazarus dir will regenerate all makefiles.
(Continue reading)