Skip to content

Commit

Permalink
Add LIBSELINUX to mount_zfs_LDFLAGS.
Browse files Browse the repository at this point in the history
Regenerating the autotools configuration on Debian and Ubuntu systems
causes compilation to fail with this error message:

  cmd/mount_zfs/../../cmd/mount_zfs/mount_zfs.c:403:
    undefined reference to `is_selinux_enabled'

In the automake template, set "mount_zfs_LDFLAGS = ... $(LIBSELINUX)"
so that the /sbin/mount.zfs utility is linked to libselinux.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
dajhorn authored and behlendorf committed Dec 17, 2011
1 parent 28eb921 commit afd7da0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/mount_zfs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ mount_zfs_LDADD = \
$(top_builddir)/lib/libzfs/libzfs.la

mount_zfs_LDFLAGS = \
-pthread -lm $(ZLIB) -lrt -ldl $(LIBUUID) $(LIBBLKID)
-pthread -lm $(ZLIB) -lrt -ldl $(LIBUUID) $(LIBBLKID) $(LIBSELINUX)
2 changes: 1 addition & 1 deletion cmd/mount_zfs/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ mount_zfs_LDADD = \
$(top_builddir)/lib/libzfs/libzfs.la

mount_zfs_LDFLAGS = \
-pthread -lm $(ZLIB) -lrt -ldl $(LIBUUID) $(LIBBLKID)
-pthread -lm $(ZLIB) -lrt -ldl $(LIBUUID) $(LIBBLKID) $(LIBSELINUX)

all: all-am

Expand Down

0 comments on commit afd7da0

Please sign in to comment.