[Mono-list] Mono 2.8 and pkg-config behaviour

Daniel Isenmann daniel.isenmann at gmx.de
Tue Oct 19 05:35:35 EDT 2010


  Hi,

I have updated to the latest mono 2.8 release. Now I get the following 
behaviour of pkg-config:

$ pkg-config --libs --cflags mono

returns nothing in the new mono 2.8 release. In release 2.6.7 it returned:

$ pkg-config --libs --cflags mono
-D_REENTRANT -pthread -I/usr/lib/pkgconfig/../../include/mono-1.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread 
-L/usr/lib/pkgconfig/../../lib -lmono -ldl -lpthread -lm -lgthread-2.0 
-lrt -lglib-2.0

If I try with newly added mono-2 pkg-config file in mono 2.8, then it 
returns:

$ pkg-config --libs --cflags mono-2
-D_REENTRANT -I/usr/lib/pkgconfig/../../include/mono-2.0 
-L/usr/lib/pkgconfig/../../lib -lmono-2.0 -lm -lrt -ldl -lpthread

Is this behaviour intended? Should the mono.pc nothing return? This 
could make some troubles in backwards compatibility or am I wrong?

The mono.pc file looks like this:
--------------------
$ cat /usr/lib/pkgconfig/mono.pc
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/lib
includedir=${prefix}/include/mono-2.0
sysconfdir=/etc

Name: Mono
Description: Mono Runtime
Version: 2.8
--------------------

The mono-2.pc file looks like this:
--------------------
$ cat /usr/lib/pkgconfig/mono-2.pc
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/lib
includedir=${prefix}/include/mono-2.0
sysconfdir=/etc

Name: Mono
Description: Mono Runtime
Version: 2.8
Libs: -L${libdir}  -lmono-2.0  -lm -lrt  -ldl -lpthread
Cflags: -I${includedir} -D_REENTRANT
--------------------


  -Daniel




More information about the Mono-list mailing list