libsuffix with cmake

Andras Mantia amantia at kde.org
Tue Apr 11 20:56:08 CEST 2006


On Tuesday 11 April 2006 21:55, William A. Hoffman wrote:
> At 01:40 PM 4/11/2006, Andras Mantia wrote:
> >On Tuesday 11 April 2006 20:30, William A. Hoffman wrote:
> >> Perhaps it should search all lib64 first, instead of alternating?
> >> Does this sound like what is happening on your machine?
> >
> >No, the problem for me (right now) is not where cmake looks to find
> > the libaries, but the default library suffix it uses when
> > installing KDE libraries (see my response to Alexander).
>
> OK, on a 64bit system this variable should always be 8:
> CMAKE_SIZEOF_VOID_P
>
> So, you could set the name of the install library suffix based on the
> value of CMAKE_SIZEOF_VOID_P.

No, it is not that easy, as some 64 bit systems use lib64, others use 
lib and suffix the 32 bit libraries... I have the check written in bash 
to detect the correct suffix, it just needs to be integrated with the 
cmake files from KDE. The check itself in automake version is:

cat > conftest.c << EOF
#include <stdio.h>
int main() {
 return 0;
}
EOF
        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |
sed -ne '/libc.so/{
    s,.*/lib\([[^\/]]*\)/.*,\1,
    p
}'`

Andras
-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060411/d7aff716/attachment.pgp 


More information about the Kde-buildsystem mailing list