patch: c/cxxflags for static libraries
Simon Hausmann
hausmann at kde.org
Sun Jul 9 17:54:18 CEST 2006
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060709/edfac89b/attachment.pgp
More information about the Kde-buildsystem
mailing list