aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs/Makefile.am
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-10-03 10:33:16 -0700
committerBrian Behlendorf <[email protected]>2019-10-03 10:33:16 -0700
commit73cdcc632304ed72aafabef1fb03c45a27dcc58f (patch)
treed525894fddc5da8fe0216f07903eb2f2009ceefd /lib/libzfs/Makefile.am
parent7c5eff9400d12ed8f2676a6d08f6ae099351397f (diff)
OpenZFS restructuring - libzfs
Factor Linux specific functionality out of libzfs. Reviewed-by: Allan Jude <[email protected]> Reviewed-by: Jorgen Lundman <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matthew Macy <[email protected]> Closes #9377
Diffstat (limited to 'lib/libzfs/Makefile.am')
-rw-r--r--lib/libzfs/Makefile.am18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am
index 3d14a77c1..da42307bb 100644
--- a/lib/libzfs/Makefile.am
+++ b/lib/libzfs/Makefile.am
@@ -27,6 +27,15 @@ USER_C = \
libzfs_status.c \
libzfs_util.c
+if BUILD_LINUX
+USER_C += \
+ os/linux/libzfs_mount_os.c \
+ os/linux/libzfs_pool_os.c \
+ os/linux/libzfs_sendrecv_os.c \
+ os/linux/libzfs_util_os.c
+endif
+
+
KERNEL_C = \
algs/sha2/sha2.c \
zfeature_common.c \
@@ -51,14 +60,19 @@ nodist_libzfs_la_SOURCES = \
libzfs_la_LIBADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \
- $(top_builddir)/lib/libshare/libshare.la \
$(top_builddir)/lib/libuutil/libuutil.la \
$(top_builddir)/lib/libzfs_core/libzfs_core.la \
$(top_builddir)/lib/libzutil/libzutil.la
-libzfs_la_LIBADD += -lm $(LIBSSL)
+if BUILD_LINUX
+libzfs_la_LIBADD += \
+ $(top_builddir)/lib/libshare/libshare.la
+endif
+
libzfs_la_LDFLAGS = -version-info 2:0:0
+libzfs_la_LIBADD += -lm $(LIBSSL)
+
EXTRA_DIST = $(libzfs_pc_DATA) $(USER_C)
# Licensing data