linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* selinux version to link against libsepol, too
@ 2008-12-16  9:54 Harald Hoyer
  2008-12-16 14:00 ` Kay Sievers
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Harald Hoyer @ 2008-12-16  9:54 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: udev-135-sepol.patch --]
[-- Type: text/plain, Size: 767 bytes --]

commit 9aa4548cb8720f772ca5e3648d689fbd931dffe1
Author: Harald Hoyer <harald@redhat.com>
Date:   Tue Dec 16 10:48:21 2008 +0100

    LDFLAGS="-all-static" and configure --withselinux needs to link against libsepol, too

diff --git a/configure.ac b/configure.ac
index 4439166..cd4ccc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,13 @@ if test "x$with_selinux" = xyes; then
 	AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support])
 	SELINUX_LIBS="-lselinux"
 fi
+if test "x$with_selinux" = xyes; then
+	LIBS_save=$LIBS
+	AC_CHECK_LIB(sepol, sepol_genbools,
+		[SELINUX_LIBS="$SELINUX_LIBS -lsepol"],
+		[])
+	LIBS=$LIBS_save
+fi
 AC_SUBST([SELINUX_LIBS])
 AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support])
 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-12-18 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16  9:54 selinux version to link against libsepol, too Harald Hoyer
2008-12-16 14:00 ` Kay Sievers
2008-12-16 14:13 ` Harald Hoyer
2008-12-16 15:04 ` Kay Sievers
2008-12-16 15:23 ` Kay Sievers
2008-12-18 10:30 ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).