From b4fc16c70e094e6cdf16b4dc765c406bfb987db5 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Mon, 30 Dec 2013 12:56:32 -0800 Subject: [PATCH] make: conditionally build filestore backends Each of btrfs and zfs backends are wrapped in if __linux__ and if WITH_ZFS, respectively, resulting in empty object files and the associated warnings. This builds them under the same conditions. Signed-off-by: Noah Watkins --- src/os/Makefile.am | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/os/Makefile.am b/src/os/Makefile.am index e83d44e091af..f89b20894ac8 100644 --- a/src/os/Makefile.am +++ b/src/os/Makefile.am @@ -1,6 +1,5 @@ libos_la_SOURCES = \ os/chain_xattr.cc \ - os/BtrfsFileStoreBackend.cc \ os/DBObjectMap.cc \ os/FileJournal.cc \ os/FileStore.cc \ @@ -14,8 +13,16 @@ libos_la_SOURCES = \ os/MemStore.cc \ os/ObjectStore.cc \ os/WBThrottle.cc \ - os/ZFSFileStoreBackend.cc \ common/TrackedOp.cc + +if LINUX +libos_la_SOURCES += os/BtrfsFileStoreBackend.cc +endif + +if WITH_LIBZFS +libos_la_SOURCES += os/ZFSFileStoreBackend.cc +endif + noinst_LTLIBRARIES += libos.la noinst_HEADERS += \ -- 2.47.3