On Sun, Aug 16, 2009 at 4:52 PM, Dan Nicholson<dbn.li...@gmail.com> wrote:
> On Sun, Aug 16, 2009 at 2:11 PM, Justin Mattock<justinmatt...@gmail.com> 
> wrote:
>> I've been racking my brain on this for a few days
>> without any results.
>> I can compile the xserver normally, but as seen as I enable
>> selinux I get an error during compilation time.
>>
>> make -d shows this:
>>
>> No need to remake target `../../xkb/libxkb.la'.
>>    Considering target file `-lselinux'.
>>     File `-lselinux' does not exist.
>
> Try commenting the automake rule for libxorg_la_DEPENDENCIES in
> hw/xfree86/Makefile.am. The problem is that libxorg_la_DEPENDENCIES is
> defined as libxorg_la_LIBADD, which (rightly) includes -lselinux.
> However, DEPENDENCIES are used as make prerequisites, so make will try
> to find a file named "-lselinux". DEPENDENCIES and LIBADD need to be
> untangled so that external libraries don't appear as make prereqs.

Try this (untested) patch.

--
Dan
diff --git a/configure.ac b/configure.ac
index 3287f9a..e7c0596 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1337,7 +1337,7 @@ if test "x$XORG" = xyes; then
 	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
 	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
 	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
-	XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $SELINUX_LIB"
+	XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB"
 
 	dnl ==================================================================
 	dnl symbol visibility
@@ -1390,7 +1390,7 @@ if test "x$XORG" = xyes; then
 	AC_CHECK_FUNCS([pci_device_is_boot_vga])
 	LIBS=$SAVE_LIBS
 	CFLAGS=$SAVE_CFLAGS
-	XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $DLOPEN_LIBS $GLX_SYS_LIBS"
+	XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $DLOPEN_LIBS $GLX_SYS_LIBS $SELINUX_LIB"
 	XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
 
 	case $host_os in
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to