Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 270350
Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +7 lines)
Line  Link Here
0
--
0
++ LVM2.2.02.48/configure.in
1
-- LVM2.2.02.48/configure.in
Lines 558-575 Link Here
558
	if test x$HAVE_SEPOL = xyes; then
558
	if test x$HAVE_SEPOL = xyes; then
559
		AC_DEFINE([HAVE_SEPOL], 1,
559
		AC_DEFINE([HAVE_SEPOL], 1,
560
		  [Define to 1 if sepol_check_context is available.])
560
		  [Define to 1 if sepol_check_context is available.])
561
		LIBS="-lsepol $LIBS"
561
		SELINUX_LIBS="-lsepol $SELINUX_LIBS"
562
	fi
562
	fi
563
563
564
	AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no)
564
	AC_CHECK_LIB(selinux, is_selinux_enabled, HAVE_SELINUX=yes, HAVE_SELINUX=no)
565
565
566
	if test x$HAVE_SELINUX = xyes; then
566
	if test x$HAVE_SELINUX = xyes; then
567
		AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
567
		AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
568
		LIBS="-lselinux $LIBS"
568
		SELINUX_LIBS="-lselinux $SELINUX_LIBS"
569
	else
569
	else
570
		AC_MSG_WARN(Disabling selinux)
570
		AC_MSG_WARN(Disabling selinux)
571
	fi
571
	fi
572
572
573
	LIBS="$SELINUX_LIBS $LIBS"
573
	# With --enable-static_link and selinux enabled, linking
574
	# With --enable-static_link and selinux enabled, linking
574
	# fails on at least Debian unstable due to unsatisfied references
575
	# fails on at least Debian unstable due to unsatisfied references
575
	# to pthread_mutex_lock and _unlock.  See if we need -lpthread.
576
	# to pthread_mutex_lock and _unlock.  See if we need -lpthread.
Lines 813-818 Link Here
813
AC_SUBST(POOL)
814
AC_SUBST(POOL)
814
AC_SUBST(QUORUM_CFLAGS)
815
AC_SUBST(QUORUM_CFLAGS)
815
AC_SUBST(QUORUM_LIBS)
816
AC_SUBST(QUORUM_LIBS)
817
AC_SUBST(SELINUX_LIBS)
816
AC_SUBST(SNAPSHOTS)
818
AC_SUBST(SNAPSHOTS)
817
AC_SUBST(STATICDIR)
819
AC_SUBST(STATICDIR)
818
AC_SUBST(STATIC_LINK)
820
AC_SUBST(STATIC_LINK)
819
-- LVM2.2.02.48/libdm/libdevmapper.pc.in
821
++ LVM2.2.02.48/libdm/libdevmapper.pc.in
Lines 8-11 Link Here
8
Version: @DM_LIB_PATCHLEVEL@
8
Version: @DM_LIB_PATCHLEVEL@
9
Cflags: -I${includedir} 
9
Cflags: -I${includedir} 
10
Libs: -L${libdir} -ldevmapper
10
Libs: -L${libdir} -ldevmapper
11
Libs.private: -lselinux -lsepol
11
Libs.private: @SELINUX_LIBS@

Return to bug 270350