aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/040_link-gtk2.patch
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-10-15 11:56:03 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-10-15 11:56:03 +0000
commit88da3a653bd30879e8a11d0c86aa1f7a4dd1e9f4 (patch)
tree3a8e936041aef584918598525bf9772c87667cf4 /debian/patches/040_link-gtk2.patch
parentNew patch 250_schemebug.patch to fix scheme bug (diff)
downloadw3m-88da3a653bd30879e8a11d0c86aa1f7a4dd1e9f4.tar.gz
w3m-88da3a653bd30879e8a11d0c86aa1f7a4dd1e9f4.zip
Update 040_link_gcc45.patch to 040_link-gtk2.patch
Diffstat (limited to '')
-rw-r--r--debian/patches/040_link-gtk2.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/040_link-gtk2.patch b/debian/patches/040_link-gtk2.patch
new file mode 100644
index 0000000..4bbc486
--- /dev/null
+++ b/debian/patches/040_link-gtk2.patch
@@ -0,0 +1,31 @@
+Subject: Explicitly add -lX11 to IMGX11LDFLAGS only when gtk2
+From: Tatsuya Kinoshita <tats@debian.org>
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605761
+Bug: https://sourceforge.net/p/w3m/patches/57/
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index e4ccc3d..3b180dd 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -706,7 +706,7 @@ AC_DEFUN([AC_W3M_IMAGE],
+ AC_DEFINE(USE_GDKPIXBUF)
+ AC_DEFINE(USE_GTK2)
+ IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
+- IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
++ IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
+ elif test x"$have_gdkpixbuf" = xyes; then
+ AC_DEFINE(USE_W3MIMG_X11)
+ IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
+diff --git a/configure b/configure
+index 4c1bc06..30edf21 100755
+--- a/configure
++++ b/configure
+@@ -6927,7 +6927,7 @@ $as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >=
+ $as_echo "#define USE_GTK2 1" >>confdefs.h
+
+ IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
+- IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
++ IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
+ elif test x"$have_gdkpixbuf" = xyes; then
+ $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
+