Message ID | 20170228162329.14517-33-mwilck@suse.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mike Snitzer |
Headers | show |
diff --git a/Makefile.inc b/Makefile.inc index 93d8e340..b5e910f9 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -8,6 +8,9 @@ # # WITH_LOCAL_LIBDM = 1 # WITH_LOCAL_LIBSYSFS = 1 +# +# Uncomment to disable RADOS support (e.g. if rados headers are missing). +# ENABLE_RADOS = 0 ifeq ($(TOPDIR),) TOPDIR = .. diff --git a/libmultipath/checkers/Makefile b/libmultipath/checkers/Makefile index 11ab76f6..4970fc07 100644 --- a/libmultipath/checkers/Makefile +++ b/libmultipath/checkers/Makefile @@ -13,8 +13,10 @@ LIBS= \ libcheckdirectio.so \ libcheckemc_clariion.so \ libcheckhp_sw.so \ - libcheckrdac.so \ - libcheckrbd.so + libcheckrdac.so +ifneq ($(ENABLE_RADOS),0) +LIBS += libcheckrbd.so +endif all: $(LIBS)
Some distros lack the rados header files. Use "make ENABLE_RADOS=0" on such distributions to build multipath-tools in such cases. The default (to enable RADOS support) remains unchanged. Signed-off-by: Martin Wilck <mwilck@suse.com> --- Makefile.inc | 3 +++ libmultipath/checkers/Makefile | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-)