All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: selinux version to link against libsepol, too
Date: Tue, 16 Dec 2008 09:54:04 +0000	[thread overview]
Message-ID: <49477ABC.9030809@redhat.com> (raw)

[-- 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])
 

             reply	other threads:[~2008-12-16  9:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16  9:54 Harald Hoyer [this message]
2008-12-16 14:00 ` selinux version to link against libsepol, too 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49477ABC.9030809@redhat.com \
    --to=harald@redhat.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.