Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.88 KB | None | 0 0
  1. Do not link python modules against -lpython2.X. Since KDE4's cmake file
  2. uses --no-undefined by default, we have to remove that from the default
  3. CMAKE_SHARED_LINKER_FLAGS variable, but only for the pykde4 subdirectory.
  4.  
  5. Index: b/python/pykde4/CMakeLists.txt
  6. ===================================================================
  7. --- a/python/pykde4/CMakeLists.txt
  8. +++ b/python/pykde4/CMakeLists.txt
  9. @@ -93,6 +93,9 @@
  10.  
  11.  ADD_DEFINITIONS(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API)
  12.  
  13. +# Do not use --no-undefined for python modules.
  14. +STRING(REPLACE -Wl,--no-undefined "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
  15. +
  16.  FILE(GLOB kdecore_files_sip sip/kdecore/*.sip)
  17.  set(SIP_EXTRA_FILES_DEPEND ${kdecore_files_sip})
  18.  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