[Mono-devel-list] Proposal: Library Loading

Paolo Molaro lupus at ximian.com
Thu Apr 15 12:21:42 EDT 2004

On 04/15/04 Mike Kestner wrote:
> Right.  One problem we seem to have is people actually install
> etc/mono/config on win32, which hoses up Gtk# since we don't want the
> names mapped on win32.  ;-)

Then you should install a different file when on win32, or generate the
file from configure or a makefile target.
We could also easily add an arch attribute to dllmap:

	<dllmap arch="*-linux" dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so" />
	<dllmap arch="*-darwin" dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.dylib" />
so that entries not matching the current arch are discarded.
This way you could just install a single file (though it would look
cluttered), instead of doing the nice thing:-)
The two things, of course, are not incompatible. For example, the above
trick could be used in the user config files to avoid having the
separate directory I mentioned in the previous mail, though packages
like gtk# should preferably install clean files tailored to the target.
The only missing thing is the little function that returns the
"cpu-opsystem" string (we need it anyway for the aot assemblies).

> > implemented only because I had other things to do, it was not yet really
> > needed and people like to argue about it more than writing the code.
> > It's in cvs now.
> As for my own whining on the topic, it's just I was certain that your

Note I missed a :-) in the above sentence:-)


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list