> 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

                                          
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to