From: Adeodato Simó <adeodato@debian.org>
Subject: Do not let python modules link against libpython.
Forwarded: no
Origin: vendor
Last-Update: 2008-01-25
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.
old
|
new
|
if (NOT _exit_code) |
152 | 152 | python_install(${CMAKE_CURRENT_BINARY_DIR}/pykdeconfig.py ${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKDE4) |
153 | 153 | endif () |
154 | 154 | |
| 155 | # Do not use --no-undefined for python modules. |
| 156 | STRING(REPLACE -Wl,--no-undefined "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}") |
| 157 | |
155 | 158 | file(GLOB kdecore_files_sip sip/kdecore/*.sip) |
156 | 159 | set(SIP_EXTRA_FILES_DEPEND ${kdecore_files_sip}) |
157 | 160 | add_sip_python_module(PyKDE4.kdecore sip/kdecore/kdecoremod.sip ${KDE4_KDECORE_LIBS} ${KDE4_KPTY_LIBS} ${QT_QTNETWORK_LIBRARY}) |