[PATCH bitmap] Add x11 to PKG_CHECK_MODULES
Robert Hooker
sarvatt at ubuntu.com
Thu Dec 9 10:04:31 PST 2010
From: Robert Hooker <robert.hooker at canonical.com>
Fixes this build failure with ld --no-add-needed
CCLD bitmap
/usr/bin/ld: bitmap-Bitmap.o: undefined reference to symbol 'XSetForeground'
/usr/bin/ld: note: 'XSetForeground' 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
make[2]: *** [bitmap] Error 1
Signed-off-by: Robert Hooker <robert.hooker at canonical.com>
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 634fa9c..63aab40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,7 @@ AC_CHECK_FUNC([mkstemp],
# Obtain compiler/linker options from depedencies
PKG_CHECK_MODULES(BMTOA, x11 xmu)
PKG_CHECK_MODULES(ATOBM, x11)
-PKG_CHECK_MODULES(BITMAP, xbitmaps xaw7 xmu)
+PKG_CHECK_MODULES(BITMAP, xbitmaps x11 xaw7 xmu)
PKG_CHECK_MODULES(APPDEFS, xt)
xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
--
1.7.2.3
More information about the xorg-devel
mailing list