]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: Add libselinux dependency to pkgconfig file
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 11 Oct 2019 07:15:35 +0000 (16:15 +0900)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Oct 2019 08:28:57 +0000 (10:28 +0200)
Add libselinux dependency to libmount if it is compiled
with selinux support.

Without this fix, 'pkg-config --libs --static mount' doesn't
show libselinux related options.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Makefile.am
libmount/mount.pc.in

index 51c6499097b58d78ad8fc5e3b3e902206dced5e0..9ef752f3c73c84e5f001c94634df92d1ea4b6e18 100644 (file)
@@ -136,6 +136,12 @@ edit_cmd = sed \
         -e 's|@LIBFDISK_PATCH_VERSION[@]|$(LIBFDISK_PATCH_VERSION)|g' \
         -e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g'
 
+if HAVE_SELINUX
+edit_cmd += -e 's|@LIBSELINUX[@]|libselinux|g'
+else
+edit_cmd += -e 's|@LIBSELINUX[@]||g'
+endif
+
 CLEANFILES += $(PATHFILES)
 EXTRA_DIST += $(PATHFILES:=.in)
 
index 7371b23c12a194dbc5ecd3f473f1bb716867e042..d5f0d4b55c1cc1d8a8b423c298cac8527603126a 100644 (file)
@@ -17,6 +17,6 @@ includedir=@includedir@
 Name: mount
 Description: mount library
 Version: @LIBMOUNT_VERSION@
-Requires.private: blkid
+Requires.private: blkid @LIBSELINUX@
 Cflags: -I${includedir}/libmount
 Libs: -L${libdir} -lmount