[Mono-list] io-layer naming issues on OSX.

Robert Jordan robertj at gmx.net
Tue Oct 17 07:24:05 EDT 2006


Andreas Färber wrote:
>> Until the runtime gets fixed (I'll provide a patch), the
>> workaround is to define and initialize "environ" from
>> within the dll that links libmono.
> 
> Unfortunately I cannot confirm this.
> 
>> Do *not* link with
>> '-undefined dynamic_lookup' any more:
>>
>> #include <mono/jit/jit.h>
>> #include <crt_externs.h>
>>
>> char **environ = NULL;
>>
>> void foo ()
>> {
>> 	environ = *_NSGetEnviron ();
>>      	mono_jit_init ("FooDomain");
>> }
> 
> Using official Mono 1.1.18, removing the -undefined dynamic_lookup (I  
> did ask about it in my original message!) does not lead to any change:

Please provide some kind of self-containing test case.

Robert



More information about the Mono-list mailing list