[PATCH evdev] Link against libudev

Chase Douglas chase.douglas at canonical.com
Mon Aug 6 09:37:18 PDT 2012


On 08/04/2012 07:46 PM, Peter Hutterer wrote:
> Fixes /usr/bin/Xorg: symbol lookup error:
> /usr/lib64/xorg/modules/input/evdev_drv.so: undefined symbol: udev_new
>
> This doesn't appear in the default configuration as Xorg links against
> libudev and the symbol is defined when evdev is loaded. It can be reproduced
> with a HAL-enabled server.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>   src/Makefile.am |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index f2d0e03..da76540 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -30,7 +30,7 @@ AM_CPPFLAGS =-I$(top_srcdir)/include
>
>   @DRIVER_NAME at _drv_la_LTLIBRARIES = @DRIVER_NAME at _drv.la
>   @DRIVER_NAME at _drv_la_LDFLAGS = -module -avoid-version
> - at DRIVER_NAME@_drv_la_LIBADD = $(MTDEV_LIBS)
> + at DRIVER_NAME@_drv_la_LIBADD = $(MTDEV_LIBS) $(UDEV_LIBS)
>   @DRIVER_NAME at _drv_ladir = @inputdir@
>
>   @DRIVER_NAME at _drv_la_SOURCES = @DRIVER_NAME at .c \
>

Looks right.

Reviewed-by: Chase Douglas <chase.douglas at canonical.com>


More information about the xorg-devel mailing list