Permalink
Browse files

fix build on mono 2.10.2 (missing glib)

  • Loading branch information...
1 parent 97bfdd6 commit d747571baae29a5636e0e98679f03da77c8545f2 @Shamar Shamar committed May 11, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +1 −0 coverage.c
View
@@ -56,7 +56,7 @@ nunit-console.exe: nunit-console.cs
gmcs -r:nunit.framework -r:nunit.core -r:nunit.util -r:Mono.GetOptions nunit-console.cs
libmono-profiler-monocov.so: coverage.c
- $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" `pkg-config --cflags mono` --shared -fPIC -o $@ $^
+ $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" `pkg-config --cflags mono-2` `pkg-config --libs mono-2` `pkg-config --cflags glib-2.0` `pkg-config --libs glib-2.0` --shared -fPIC -o $@ $^
install: all
mkdir -p $(prefix)/lib/monocov
View
@@ -4,6 +4,7 @@
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include <glib.h>
#include <mono/metadata/class.h>
#include <mono/metadata/assembly.h>

0 comments on commit d747571

Please sign in to comment.