Hi,

static libraries have to be built PIC in order for them to be able to be
linked into shared objects.

Simon

Index: KDE4Macros.cmake
===================================================================
--- KDE4Macros.cmake    (revision 560213)
+++ KDE4Macros.cmake    (working copy)
@@ -526,6 +526,8 @@
    if (${_lib_TYPE} STREQUAL "STATIC")
       set(_first_SRC)
       set(_add_lib_param STATIC)
+      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_SHARED_LIBRARY_C_FLAGS}")
+      set(CMAKE_CXX_FLAGS "${CMAKE_CXXFLAGS} 
${CMAKE_SHARED_LIBRARY_CXX_FLAGS}")
    endif (${_lib_TYPE} STREQUAL "STATIC")
    if (${_lib_TYPE} STREQUAL "SHARED")
       set(_first_SRC)

Attachment: pgporDdTe8ajs.pgp
Description: PGP signature

_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to