From: Robert Hooker <robert.hoo...@canonical.com>

Fixes this build failure with ld --no-add-needed

  CCLD   xman
/usr/bin/ld: misc.o: undefined reference to symbol 'XSaveContext'
/usr/bin/ld: note: 'XSaveContext' is defined in DSO /usr/lib/libX11.so.6 so try 
adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Signed-off-by: Robert Hooker <robert.hoo...@canonical.com>
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index ddaac9a..b9a79c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,7 @@ if test x$LOCALMANPATH != x; then
 fi
 
 # Obtain compiler/linker options from depedencies
-PKG_CHECK_MODULES(XMAN, xproto xaw7 xmu xt)
+PKG_CHECK_MODULES(XMAN, xproto x11 xaw7 xmu xt)
 
 AC_ARG_WITH(manconfig,
         AC_HELP_STRING([--with-manconfig=<filename>],
-- 
1.7.2.3

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to