[Uim] [PATCH] Fix X11 location for QT on multilib

John Thacker thacker at math.cornell.edu
Wed May 11 18:44:56 EEST 2005


The current uim code hardcodes in the location /usr/X11R6/lib for the
X11 libraries when setting QT_LIBS. (Later used for setting :UIM_QT_LDFLAGS)  
However, the X libraries may not be contained there, especially on a x86_64 
multilib system, where we may want to link against /usr/X11R6/lib64.  
configure actually finds the correct location for the X libraries earlier, 
but QT_LIBS doesn't use this information.  I've attached a simple patch to 
set QT_LIBS using this information, fixing the build on some x86_64
multilib machines.

John Thacker
-------------- next part --------------
diff -ur uim-snapshot.orig/configure.ac uim-snapshot/configure.ac
--- uim-snapshot.orig/configure.ac	2005-05-11 11:35:51.000000000 -0400
+++ uim-snapshot/configure.ac	2005-05-11 11:36:09.000000000 -0400
@@ -590,7 +590,7 @@
     fi
 
     LDFLAGS=$_SAVE_LDFLAGS
-    QT_LIBS="-L/usr/X11R6/lib $QT_LDFLAGS $QT_LIB -lXext -lX11"
+    QT_LIBS="$X_LIBS $QT_LDFLAGS $QT_LIB -lXext -lX11"
 
     _SAVE_CXXFLAGS=$CXXFLAGS
     _SAVE_LIBS=$LIBS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/uim/attachments/20050511/e860bea7/attachment.pgp 


More information about the uim mailing list