From: Masami Hiramatsu Date: Fri, 11 Oct 2019 07:15:35 +0000 (+0900) Subject: libmount: Add libselinux dependency to pkgconfig file X-Git-Tag: v2.35-rc1~102 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Futil-linux.git;a=commitdiff_plain;h=9ae113ca7343ba7d0a9c0c2e8eb572f811b31262 libmount: Add libselinux dependency to pkgconfig file 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 --- diff --git a/Makefile.am b/Makefile.am index 51c6499097..9ef752f3c7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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) diff --git a/libmount/mount.pc.in b/libmount/mount.pc.in index 7371b23c12..d5f0d4b55c 100644 --- a/libmount/mount.pc.in +++ b/libmount/mount.pc.in @@ -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