[fpc-devel] fpc libraries do not work in freeBSD...
Fred van Stappen
fiens at hotmail.com
Wed Aug 6 00:03:54 CEST 2014
> Could it be feasible to compile a "custom" fpc, so i could compile libraries for freeBSD 10 ?
>
> Startup files can be exchanged without recompiling everything. Just
> overwrite the .o with the newly assembled ones.
Ok, many thanks Marco. ;-)
So, according with Michal Wallace solution (hope i understood) :=>
>> http://lists.freepascal.org/pipermail/fpc-devel/2013-November/032950.html
I will exchange part of code of dllprt0.as with some of prt0.as =>
Change that :
.weak operatingsystem_parameter_argc
.weak operatingsystem_parameter_argv
.weak operatingsystem_parameter_envp
with that :
.global operatingsystem_parameter_envp
.global operatingsystem_parameter_argc
.global operatingsystem_parameter_argv
.set operatingsystem_parameter_envp,operatingsystem_parameters+0
.set operatingsystem_parameter_envp,operatingsystem_parameters+0
.set operatingsystem_parameter_envp,operatingsystem_parameters+0
////////
=> And recompile fpc ( or faster, recompile only dllprt0.as)
PS : Write you later after test ;-)
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140806/b36b1726/attachment.html>
More information about the fpc-devel
mailing list