kdesupport/strigi

Michael Pyne mpyne at kde.org
Sat Jan 2 04:44:38 CET 2010


SVN commit 1068818 by mpyne:

Always define _REENTRANT for libxml2 in strigi, since this build failure has
also been reported on Ubuntu Karmic.

CCMAIL:kde-buildsystem at kde.org


 M  +3 -2      CMakeLists.txt  


--- trunk/kdesupport/strigi/CMakeLists.txt #1068817:1068818
@@ -38,6 +38,9 @@
 set (LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name" FORCE)
 set (MIMEINSTALLDIR "${CMAKE_INSTALL_PREFIX}/share/mime")
 
+# due to a bug in libxml2, we only get thread support if _REENTRANT is defined
+add_definitions(-D_REENTRANT)
+
 # Always include srcdir and builddir in include path
 # This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in about every subdir
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -57,8 +60,6 @@
    set(CPACK_SET_DESTDIR ON)
    set(CPACK_PACKAGE_RELOCATABLE OFF)
    set(CMAKE_INSTALL_NAME_DIR ${LIB_DESTINATION})
-   # due to a bug in libxml2, we only get thread support if _REENTRANT is defined
-   add_definitions(-D_REENTRANT)
 endif(APPLE)
 
 if(MSVC)


More information about the Kde-buildsystem mailing list