SVN commit 684033 by apaku:

Add -fPIC, that seems to be the only option to use a static lib in a plugin on
64Bit platforms

CCing kde-buildsystem because I'm not sure this is the right thing to do.
Making it a shared library is a problem because parts of the code is generated
and the generator doesn't allow to add EXPORT macro's. 

The question is: Use -fPIC or build a shared lib that has visibility=default
instead of hidden?

CCMAIL:[email protected]



 M  +3 -0      CMakeLists.txt  


--- 
trunk/playground/devtools/kdevelop4-extra-plugins/python/parser/CMakeLists.txt 
#684032:684033
@@ -1,6 +1,9 @@
 
 add_subdirectory(tests)
 
+## Is this really supported on all architectures??
+add_definitions(-fPIC)
+
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
 include_directories(${QT_INCLUDES})
_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to