summaryrefslogtreecommitdiff
path: root/cmd/mount_zfs/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mount_zfs/Makefile.am')
-rw-r--r--cmd/mount_zfs/Makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmd/mount_zfs/Makefile.am b/cmd/mount_zfs/Makefile.am
new file mode 100644
index 000000000000..6c4d6ff79f16
--- /dev/null
+++ b/cmd/mount_zfs/Makefile.am
@@ -0,0 +1,20 @@
+include $(top_srcdir)/config/Rules.am
+
+#
+# Ignore the prefix for the mount helper. It must be installed in /sbin/
+# because this path is hardcoded in the mount(8) for security reasons.
+# However, if needed, the configure option --with-mounthelperdir= can be used
+# to override the default install location.
+#
+sbindir=$(mounthelperdir)
+sbin_PROGRAMS = mount.zfs
+
+mount_zfs_SOURCES = \
+ mount_zfs.c
+
+mount_zfs_LDADD = \
+ $(abs_top_builddir)/lib/libzfs/libzfs.la \
+ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
+ $(abs_top_builddir)/lib/libnvpair/libnvpair.la
+
+mount_zfs_LDADD += $(LTLIBINTL)