[fpc-devel] fpc libraries do not work in freeBSD...
XHajT03 at hajny.biz
Wed Aug 6 09:27:11 CEST 2014
On Wed, August 6, 2014 03:36, Fred van Stappen wrote:
> Changed that in prt0.as =:>
>> > .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_argc,operatingsystem_parameters+8
>> > .set operatingsystem_parameter_argv,operatingsystem_parameters+16
> Have re-compiled fpc + recompiled library...
> Same error message :
>> OSerror: ~/libtest.so: Undefined symbol
I assume that you should have changed dllprt0.as rather than prt0.as?
Moreover - remind me, do you target FreeBSD under x86_64 or x86 (if you
change the wrong one, it wouldn't have any effect, of course)? The snippet
above seems to suggest x86_64 (considering the offsets for argc and argv
More information about the fpc-devel