Add Valgrind suppressions
[tilda-gobject.git] / Makefile
index 1a5179c..0ab9090 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,10 @@ eggaccelerators.o: eggaccelerators.c eggaccelerators.h
        $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
 
 memcheck: tilda
-       valgrind --tool=memcheck ./tilda
+       # Variables to make GLib work MUCH better in valgrind
+       export G_DEBUG=gc-friendly
+       export G_SLICE=always-malloc
+       valgrind --suppressions=tilda.suppressions --tool=memcheck --leak-check=full ./tilda
 
 clean:
        rm -f *.o