Michael Van Canneyt schreef:
On Sun, 1 Apr 2007, Vincent Snijders wrote:
Michael Van Canneyt schreef:
Hello,
In order to be able to create shared libraries with the LCL
on X86_64 systems,
All X86_64 systems, or just x86_64-linux?
I suspect just linux:
ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
ifeq ($(OS_TARGET),linux)
ifeq ($(CPU_TARGET),x86_64)
override FPCOPT+=-Cg
endif
endif
endif
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
I did not do this.
Can the makefile then be used with fpc 2.0.4?
No, if you want that, you'll need to add version things. I think
the following:
[requires]
packages_2_0=fcl
packages_2_3=fcl-base fcl-image fcl-xml fcl-db fcl-registry
May do what you want, but this is a big mess.
I just used the fpcmake of fpc 2.3.1 to regenerate the makefiles. I set
the FPCDIR to the fpc 2.0.x source directory.
Lazarus builds with fpc 2.0.4 and 2.3.1 on windows. I assume it will
work for you too.
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives