mah-jong (1.11-2) prune_gui_libraries

Summary |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

download this patch

Patch contents

Description: Make the list of required shared libraries for GTK explicit.
 Using `pkg-config --libs gtk+-$(Gtk)` brings many libraries that are not
 really needed by xmj. Replace it with an explicit list of libraries that
 are really needed, to avoid useless dependencies.
Author: Nicolas Boullis <>
--- a/
+++ b/
@@ -155,7 +155,7 @@
 # Not Windows. If gtk+ is properly installed, this is all that's needed.
 ifdef Gtk
 EXTRA_INCLUDES=`pkg-config --cflags gtk+-$(Gtk)`
-GUILIBS=`pkg-config --libs gtk+-$(Gtk)`
+GUILIBS=-lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lglib-2.0
 EXTRA_INCLUDES=`gtk-config --cflags`
 GUILIBS=`gtk-config --libs`