> 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_n...@_drv_la_ltlibraries = @driver_n...@_drv.la
> @driver_n...@_drv_la_ldflags = -module -avoid-version
> +...@driver_name@_drv_la_LIBADD = -lm
> @driver_n...@_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_n...@_drv_la_libadd = $(LIBM)

--
Dan
_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to