]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
On Darwin: subfix of dynamic library is dylib
authorYan, Zheng <zyan@redhat.com>
Thu, 23 Jul 2015 01:52:08 +0000 (09:52 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:23 +0000 (16:00 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/erasure-code/ErasureCodePlugin.cc

index 74114eedff33a41c1786a671887f67ac2ae0888d..b120eda3a56f0fb05c6df8e8c7071ea42b51d1c2 100644 (file)
 #include "include/str_list.h"
 
 #define PLUGIN_PREFIX "libec_"
+#if defined(DARWIN)
+#define PLUGIN_SUFFIX ".dylib"
+#else
 #define PLUGIN_SUFFIX ".so"
+#endif
 #define PLUGIN_INIT_FUNCTION "__erasure_code_init"
 #define PLUGIN_VERSION_FUNCTION "__erasure_code_version"