Here's the fix to that libselinux ld error you were getting. Vikram
>From e4f6cb5f19faace8d0af0b235d0190bc19692c23 Mon Sep 17 00:00:00 2001 From: Vikram Ambrose <noel.ambrose@xxxxxxxxx> Date: Wed, 3 Sep 2008 23:36:38 -0400 Subject: [PATCH] Fixes build error reported by Joshua Brindle: "/usr/bin/ld: .libs/load_policy.o: relocation R_X86_64_PC32 against undefined symbol `security_get_boolean_names_internal' can not be used when making a shared object; recompile with -fPIC" while building libselinux with: ./configure --disable-rpm --disable-avc --disable-bool --disable-swig --disable-docs Resolved by adding missing macro -DDISABLE_BOOL when compiling with --disable-bool Also prevented similar problems by adding -DDISABLE_AVC when compiling with --disable-avc --- libselinux/src/Makefile.am | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/libselinux/src/Makefile.am b/libselinux/src/Makefile.am index 4b0a298..fd22726 100644 --- a/libselinux/src/Makefile.am +++ b/libselinux/src/Makefile.am @@ -20,7 +20,10 @@ RPMSRC = rpm.c BUILDSRC = $(COMMONSRC) AM_CFLAGS = \ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ - -I$(abs_top_srcdir)/include + -I$(abs_top_srcdir)/include \ + $(extra_cflags) + +extra_cflags = AM_LDFLAGS = -Wl,--as-needed SWIG_FLAGS = -Wall -python -outdir $(srcdir) lib_LTLIBRARIES = libselinux.la @@ -59,9 +62,13 @@ endif # have_sepol endif # have python if enable_avc BUILDSRC += $(AVCSRC) +else +extra_cflags += -DDISABLE_AVC endif if enable_bool BUILDSRC += $(BOOLSRC) +else +extra_cflags += -DDISABLE_BOOL endif if enable_rpm BUILDSRC += $(RPMSRC) -- 1.5.5.1