KDE/kdebase/runtime/kioslave/thumbnail

Michael Jansen kde at michael-jansen.biz
Mon Sep 14 19:41:31 CEST 2009


SVN commit 1023397 by mjansen:

Fix build:

.../bin/ld: ../../lib/libicoutils.a(icoutils.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

CCMAIL:kde-buildsystem at kde.org

 M  +4 -11     CMakeLists.txt  


--- trunk/KDE/kdebase/runtime/kioslave/thumbnail/CMakeLists.txt #1023396:1023397
@@ -114,25 +114,18 @@
 
 ########### next target ###############
 
-add_definitions ( -fPIC )
-
-set ( icoutils_SRCS icoutils.cpp )
-add_library ( icoutils STATIC ${icoutils_SRCS} )
-
-set ( windowsexethumbnail_SRCS windowsexecreator.cpp )
+set ( windowsexethumbnail_SRCS windowsexecreator.cpp icoutils.cpp)
 kde4_add_plugin ( windowsexethumbnail ${windowsexethumbnail_SRCS} )
-target_link_libraries ( windowsexethumbnail icoutils ${KDE4_KIO_LIBS} )
+target_link_libraries ( windowsexethumbnail ${KDE4_KIO_LIBS} )
 install ( TARGETS windowsexethumbnail DESTINATION ${PLUGIN_INSTALL_DIR} )
 install ( FILES windowsexethumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
 
-set ( windowsimagethumbnail_SRCS windowsimagecreator.cpp )
+set ( windowsimagethumbnail_SRCS windowsimagecreator.cpp icoutils.cpp)
 kde4_add_plugin ( windowsimagethumbnail ${windowsimagethumbnail_SRCS} )
-target_link_libraries ( windowsimagethumbnail icoutils ${KDE4_KIO_LIBS} )
+target_link_libraries ( windowsimagethumbnail ${KDE4_KIO_LIBS} )
 install ( TARGETS windowsimagethumbnail DESTINATION ${PLUGIN_INSTALL_DIR} )
 install ( FILES windowsimagethumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
 
-remove_definitions ( -fPIC )
-
 ########### install files ###############
 
 install(FILES thumbcreator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})


More information about the Kde-buildsystem mailing list