On a Gentoo tinderbox run on windowmaker-0.95.3, we met this bug:
https://bugs.gentoo.org/show_bug.cgi?id=425788

libWMaker.so is not built linked to libX11, while using some Xlib references (XSendEvent, XFree, ...)
This can cause problems on systems with --as-needed link flag.

The attached patch fixes this, adding X libs to the link step

--
Bernard Cafarelli (Voyageur)
Gentoo developer (NX, GNUstep, net-misc, llvm/clang, ...)
From 13064326504f63e1df78390a03c7bf90258334ee Mon Sep 17 00:00:00 2001
From: Bernard Cafarelli <[email protected]>
Date: Wed, 11 Jul 2012 14:58:09 +0200
Subject: [PATCH] Link libWMaker with libX11

---
 wmlib/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/wmlib/Makefile.am b/wmlib/Makefile.am
index 0f8201f..7b95d1f 100644
--- a/wmlib/Makefile.am
+++ b/wmlib/Makefile.am
@@ -2,6 +2,7 @@
 AUTOMAKE_OPTIONS = no-dependencies
 
 libWMaker_la_LDFLAGS = -version-info 1:1:0
+libWMaker_la_LIBADD = @LIBRARY_SEARCH_PATH@ @XLIBS@
 lib_LTLIBRARIES = libWMaker.la
 
 include_HEADERS = WMaker.h
-- 
1.7.8.6

Reply via email to