ssuominen    14/03/10 09:39:13

  Added:                hsetroot-1.0.2-underlinking.patch
  Log:
  Use pkg-config to get $(X11_LIBS) for the hsetroot binary in src/Makefile.am 
wrt #504056 by techno156
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
4868F14D)

Revision  Changes    Path
1.1                  x11-misc/hsetroot/files/hsetroot-1.0.2-underlinking.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/hsetroot/files/hsetroot-1.0.2-underlinking.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/hsetroot/files/hsetroot-1.0.2-underlinking.patch?rev=1.1&content-type=text/plain

Index: hsetroot-1.0.2-underlinking.patch
===================================================================
http://bugs.gentoo.org/504056

--- configure.ac
+++ configure.ac
@@ -38,6 +38,8 @@
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 
+PKG_CHECK_MODULES(X11, [x11])
+
 # Check for imlib2
 AC_CHECK_PROGS(imlib2config_cmd, imlib2-config)
 if test x$imlib2config_cmd = "x"; then
--- src/Makefile.am
+++ src/Makefile.am
@@ -1,7 +1,7 @@
 bin_PROGRAMS = hsetroot
 
 AM_CFLAGS = @CFLAGS@ @IMLIB2_CFLAGS@ -Wall
-LIBS = @IMLIB2_LIBS@
+LIBS = @IMLIB2_LIBS@ $(X11_LIBS)
 
 hsetroot_SOURCES = hsetroot.c
 




Reply via email to