summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gtk/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gtk/extconf.rb b/ext/gtk/extconf.rb
index 3955d13355..a30f050e66 100644
--- a/ext/gtk/extconf.rb
+++ b/ext/gtk/extconf.rb
@@ -2,9 +2,11 @@ require "mkmf"
# may need to be changed
$LDFLAGS="-L/usr/X11R6/lib -L/usr/local/lib"
+$CFLAGS=`gtk-config --cflags`
have_library("X11", "XOpenDisplay")
have_library("Xext", "XShmQueryVersion")
+have_library("Xi", "XOpenDevice")
if have_library("glib", "g_print") and
have_library("gdk", "gdk_init") and
have_library("gtk", "gtk_init")