summaryrefslogtreecommitdiff
path: root/m4/libs.m4
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2006-02-08 04:16:41 +0000
committerGuillem Jover <guillem@debian.org>2006-02-08 04:16:41 +0000
commit55a257af3c95fbfa188a7b8b8344151bacccb713 (patch)
tree89ba4e1eee91943f939728fef34331422c66573a /m4/libs.m4
parent3c634bd7df1c1507262fcc88f3af5d422c079865 (diff)
downloaddpkg-55a257af3c95fbfa188a7b8b8344151bacccb713.tar.gz
Use pkg-config to get the proper flags to link against libselinux.
Add a Build-Dependency on pkg-config, thighten libselinux1-dev to at least version 1.28-4 which provides a .pc file, and remove libsepol1-dev as libselinux1-dev is Depending on it.
Diffstat (limited to 'm4/libs.m4')
-rw-r--r--m4/libs.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/libs.m4 b/m4/libs.m4
index 74644980c..f834026e9 100644
--- a/m4/libs.m4
+++ b/m4/libs.m4
@@ -71,9 +71,9 @@ if test "x$with_selinux" != "xno"; then
[AC_DEFINE(WITH_SELINUX, 1,
[Define to 1 to compile in SELinux supoprt])
if test "x$with_selinux" = "xstatic"; then
- dpkg_selinux_libs="-Wl,-Bstatic -lselinux -lsepol -Wl,-Bdynamic"
+ dpkg_selinux_libs="-Wl,-Bstatic `pkg-config --static --libs libselinux` -Wl,-Bdynamic"
else
- dpkg_selinux_libs="-lselinux"
+ dpkg_selinux_libs="`pkg-config --libs libselinux`"
fi
SELINUX_LIBS="${SELINUX_LIBS:+$SELINUX_LIBS }$dpkg_selinux_libs"
with_selinux="yes"],