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 <noahwatkins@gmail.com>
libos_la_SOURCES = \
os/chain_xattr.cc \
- os/BtrfsFileStoreBackend.cc \
os/DBObjectMap.cc \
os/FileJournal.cc \
os/FileStore.cc \
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 += \