]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: mon, osd etc. depend on the plugins 2450/head
authorLoic Dachary <loic-201408@dachary.org>
Wed, 10 Sep 2014 15:58:45 +0000 (17:58 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Wed, 10 Sep 2014 18:49:00 +0000 (20:49 +0200)
Since the erasure code plugin version check has been introduced,
whenever a library/binary that can load plugin needs to be recompiled,
the erasure code plugins must also be considered. If the reason for
recompiling the library/binary is a new commit, the plugins will fail to
load.

The dependency is not based on source compilation and a shared library
dependency on liberasure-code.la is added instead. This library is
uniformly used whenever a plugin is to be loaded and therefore covers
all library/binaries that need it.

http://tracker.ceph.com/issues/9413 Fixes: #9413

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/erasure-code/Makefile.am

index dc1db2113dd1aad81e3d21d6ca28bdb8f2d993cf..e42e1260013bf58b4528902851c4c937747576d0 100644 (file)
@@ -13,6 +13,7 @@ endif # WITH_BETTER_YASM_ELF64
 liberasure_code_la_SOURCES = \
        erasure-code/ErasureCodePlugin.cc
 erasure-code/ErasureCodePlugin.cc: ./ceph_ver.h
+liberasure_code_la_DEPENDENCIES = $(erasure_codelib_LTLIBRARIES)
 if LINUX
 liberasure_code_la_LIBADD = -ldl
 endif # LINUX