libsuffix with cmake
William A. Hoffman
billlist at nycap.rr.com
Tue Apr 11 19:30:13 CEST 2006
At 12:48 PM 4/11/2006, Andras Mantia wrote:
>Hi,
>
> Many 64bit distributions use lib64 for 64bit libraries and lib for 32
>bit ones. AFAIK there are some using lib32 for 32bit and lib for 64 bit
>ones. Recently I fixed the automake system for KDE 3.5 to detect if
>your distribution is using a suffix or not and use the same for KDE.
>This is partly for consistency and partly because some checks relied on
>the suffix to find their dependencies (for example KDE using lib and
>the OS using lib64 caused the dbus check to fail).
> Now with cmake the same problems appears: by default lib is used,
>altough my system uses lib64. Can someone tell me where to fix this in
>the cmake files for KDE? Actually what is needed:
>- automatic detection (default)
>- enabling a suffix selected by the user
CMake should automatically look in lib64 on 64 bit machines.
It basically takes the search path for libraries and changes all
lib to lib64, and searches them first.
So, if you have
/usr/lib
/usr/local/lib
CMake will search the following on a 64 bit machine:
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
Perhaps it should search all lib64 first, instead of alternating?
Does this sound like what is happening on your machine?
-Bill
More information about the Kde-buildsystem
mailing list