pkg-config and Mono, was: Re: [Mono-devel-list] GAC issues and third party libraries.
Miguel de Icaza
miguel at ximian.com
Thu May 6 00:43:18 EDT 2004
Hello,
> > Alternatively, more elite users can do:
> >
> > mcs `pkg-config --libs gtk-sharp` hello.cs
> >
>
> When I run 'pkg-config --libs mono' I get:
>
> -Wl,--export-dynamic -pthread -L/opt/gnome/lib -lmono -lpthread -lm
> -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
>
> These appear to be the library options to pass into gcc, not mcs.
--libs mono is designed to compile against Mono as a library, so those
flags are correct.
> Because I require mono, the mono "libs" options, as well as the "libs"
> options of all of its dependencies, are being included. This wouldn't
> be a problem except that these are gcc-like options, not mcs options.
Ah, please remove the mono dependency.
> It doesn't seem safe to me to re-use --libs for both C and Mono
> compiler options.
Just do not depend on C modules from C# .pc files. Not the end of the
world, just make sure you stick to C# deps ;-)
More information about the Mono-devel-list
mailing list