Sorry, wrong diff: --- CMakeLists.txt (revision 527865) +++ CMakeLists.txt (revision 529848) @@ -84,13 +84,7 @@ ########### next target ############### -if(WIN32) - set(kioslave_SRCS kioslave.cpp - ${CMAKE_SOURCE_DIR}/libltdl/ltdl.c - ${CMAKE_SOURCE_DIR}/libltdl/ltdl_win.c) -else(WIN32) - set(kioslave_SRCS kioslave.cpp ${CMAKE_SOURCE_DIR}/libltdl/ltdl.c) -endif(WIN32) +set(kioslave_SRCS kioslave.cpp)
> -----Original Message----- > From: Paulo Jorge Guedes [mailto:[EMAIL PROTECTED] > Sent: segunda-feira, 17 de Abril de 2006 17:22 > To: kde-buildsystem@kde.org; David Faure > Subject: ltdl.c in kinit > > Hi, > > This commit: > > --- CMakeLists.txt (revision 530673) > +++ CMakeLists.txt (working copy) > @@ -84,7 +84,7 @@ > ########### next target ############### > -set(kioslave_SRCS kioslave.cpp) > +set(kioslave_SRCS kioslave.cpp ${CMAKE_SOURCE_DIR}/libltdl/ltdl.c) > kde4_automoc(${kioslave_SRCS}) > > The code from ltdl.c is already in libkdecore, which kioslave links to, > so no need to add it again. > ____________________________________ > > breaks linkage on Windows (both mingw and msvc). It makes sense though > :) > There is a similar case with kstyles/keramic. > > CMakeFiles/kioslave.dir/kioslave.obj: In function `main': > d:/kde/kdelibs/kinit/kioslave.cpp:66: undefined reference to `lt_dlinit' > CMakeFiles/kioslave.dir/kioslave.obj: In function `main': > D:/downloads/qt-win-opensource-src-4.1.1/include/QtCore/qbytearray.h:329 > : undefined reference to `lt_dlopen' > CMakeFiles/kioslave.dir/kioslave.obj: In function `main': > d:/kde/kdelibs/kinit/kioslave.cpp:76: undefined reference to `lt_dlsym' > d:/kde/kdelibs/kinit/kioslave.cpp:71: undefined reference to > `lt_dlerror' > d:/kde/kdelibs/kinit/kioslave.cpp:79: undefined reference to `lt_dlsym' > d:/kde/kdelibs/kinit/kioslave.cpp:82: undefined reference to > `lt_dlerror' > collect2: ld returned 1 exit status > > Paulo > _______________________________________________ > Kde-buildsystem mailing list > Kde-buildsystem@kde.org > https://mail.kde.org/mailman/listinfo/kde-buildsystem _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem