[Gtk-sharp-list] DllImport on *.so files

Miguel de Icaza miguel@ximian.com
21 Aug 2003 12:54:25 -0400


> The mappings are hard coded into a file which is installed by mono.  It
> would be nice if there were a tool to alter the config file at install
> time.  On linux, I could just do an ldd libgtksharpglue.so and grep out
> the versioned so names. Not sure about the portability of such an
> approach, but it obviously doesn't need to be portable to win32 at
> least.

Maybe even better would be to have more than one config file, so various
packages can "populate" the configuration files with the proper data.

Gtk-sharp could install a /etc/mono/config.gtk-sharp that contains the
mappings for the libraries it discovered, instead of having everything
in a single file.

Another option would be to have libraries listed in /usr/lib/mono-libs,
which link to the right location, and we could probe that directory
before probing /usr/lib