Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Do not link python modules against -lpython2.X. Since KDE4's cmake file
- uses --no-undefined by default, we have to remove that from the default
- CMAKE_SHARED_LINKER_FLAGS variable, but only for the pykde4 subdirectory.
- Index: b/python/pykde4/CMakeLists.txt
- ===================================================================
- --- a/python/pykde4/CMakeLists.txt
- +++ b/python/pykde4/CMakeLists.txt
- @@ -93,6 +93,9 @@
- ADD_DEFINITIONS(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API)
- +# Do not use --no-undefined for python modules.
- +STRING(REPLACE -Wl,--no-undefined "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
- +
- FILE(GLOB kdecore_files_sip sip/kdecore/*.sip)
- set(SIP_EXTRA_FILES_DEPEND ${kdecore_files_sip})
- ADD_SIP_PYTHON_MODULE(PyKDE4.kdecore sip/kdecore/kdecoremod.sip ${KDE4_KDECORE_LIBS} ${KDE4_KPTY_LIBS} ${QT_QTNETWORK_LIBRARY})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement