File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ if(ENABLE_SHARED)
2929 set_property (TARGET librados APPEND_STRING PROPERTY
3030 LINK_FLAGS " -static-libstdc++ -static-libgcc" )
3131 endif ()
32+ target_compile_definitions (librados PRIVATE -DLIBRADOS_SHARED=1)
3233endif ()
3334target_link_libraries (librados PRIVATE
3435 librados_impl osdc ceph-common cls_lock_client
Original file line number Diff line number Diff line change 4444#define tracepoint (...)
4545#endif
4646
47- #if defined(HAVE_ASM_SYMVER) || defined(HAVE_ATTR_SYMVER)
47+ #if defined(LIBRADOS_SHARED) && (defined( HAVE_ASM_SYMVER) || defined(HAVE_ATTR_SYMVER) )
4848// prefer __attribute__() over global asm(".symver"). because the latter
4949// is not parsed by the compiler and is partitioned away by GCC if
5050// lto-partitions is enabled, in other words, these asm() statements
You can’t perform that action at this time.
0 commit comments