File `-lselinux' does not exist.

Dan Nicholson dbn.lists at
Sun Aug 16 17:05:31 PDT 2009

On Sun, Aug 16, 2009 at 4:52 PM, Dan Nicholson<dbn.lists at> wrote:
> On Sun, Aug 16, 2009 at 2:11 PM, Justin Mattock<justinmattock at> 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/'.
>>    Considering target file `-lselinux'.
>>     File `-lselinux' does not exist.
> Try commenting the automake rule for libxorg_la_DEPENDENCIES in
> hw/xfree86/ 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-external-prereqs.patch
Type: text/x-patch
Size: 1156 bytes
Desc: not available
URL: <>

More information about the xorg mailing list