Scalable-Key-Value / code

Source code of the Scalable Key/Value Store (SKV)
Eclipse Public License 1.0
5 stars 9 forks source link

linking static vs. dynamic #7

Closed lasch closed 9 years ago

lasch commented 10 years ago

@eile:

we have to enable static linking at least to run on BG/Q. The performance difference can be as bad as ~10x.

Can you have a look at the cmake configuration. You seem to have commented out the static linking in CMakeLists.txt with this comment:

eile: Disabled static linking. For some unfathomable reason fxlogger then forces the link against gcc 4.4.7 libs which can't work

eile commented 10 years ago

You can just put it back to static, and compiling with cmake should trigger the error. I won't be able to look into this before end of October.

eile commented 10 years ago

set(COMMON_LIBRARY_TYPE STATIC) before any common_library call.

lasch commented 10 years ago

Thanks for commenting. One of the next updates will have both enabled. If I understand the comments in commonLibrary correctly, putting STATIC in first, prefers the static linking.

lasch commented 9 years ago

recent experiments don't show a huge difference between static and dynamic - I wonder why, but anyway - pull request #18 already make this an option. Closing this issue...