xorg/driver/xf86-input-synaptics: [PATCH 2/2] Janitor: compile warnings and "missing" symbols.
Dan Nicholson
dbn.lists at gmail.com
Fri Feb 6 05:50:58 PST 2009
> diff --git a/src/Makefile.am b/src/Makefile.am
> index d7eb08d..8c9ef37 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -28,6 +28,7 @@ AM_CFLAGS = $(CWARNFLAGS) $(XORG_CFLAGS)
>
> @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 = -lm
> @DRIVER_NAME at _drv_ladir = @inputdir@
>
> INCLUDES=-I$(top_srcdir)/include/
This is probably fine, but it's a little safer to use the
AC_CHECK_LIBM macro from libtool.
configure.ac:
AC_CHECK_LIBM
src/Makefile.am:
@DRIVER_NAME at _drv_la_LIBADD = $(LIBM)
--
Dan
More information about the xorg
mailing list