diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-07-23 03:52:08 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2015-08-31 10:00:23 +0200 |
commit | 05fbfd1102e9fe263f3bde3b52f5eb97b196886f (patch) | |
tree | 2ede1aa379f5e4a5a2a0d2202814c433579f9815 /src/erasure-code/ErasureCodePlugin.cc | |
parent | porting.h: add TODO comment (diff) | |
download | ceph-05fbfd1102e9fe263f3bde3b52f5eb97b196886f.tar.xz ceph-05fbfd1102e9fe263f3bde3b52f5eb97b196886f.zip |
On Darwin: subfix of dynamic library is dylib
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'src/erasure-code/ErasureCodePlugin.cc')
-rw-r--r-- | src/erasure-code/ErasureCodePlugin.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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" |