From 05fbfd1102e9fe263f3bde3b52f5eb97b196886f Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 23 Jul 2015 09:52:08 +0800 Subject: On Darwin: subfix of dynamic library is dylib Signed-off-by: Yan, Zheng --- src/erasure-code/ErasureCodePlugin.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/erasure-code/ErasureCodePlugin.cc') diff --git a/src/erasure-code/ErasureCodePlugin.cc b/src/erasure-code/ErasureCodePlugin.cc index 74114eedff3..b120eda3a56 100644 --- a/src/erasure-code/ErasureCodePlugin.cc +++ b/src/erasure-code/ErasureCodePlugin.cc @@ -24,7 +24,11 @@ #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" -- cgit v1.2.3