build: Use libtool macros to find libm

Instead of using `-lm` everywhere, use LT_LIB_M inside configure.ac, and
$(LIBM) inside Makefile.am.
This commit is contained in:
Emmanuele Bassi
2015-03-03 17:23:37 +00:00
parent 4591435c35
commit df15f04fc0
8 changed files with 11 additions and 27 deletions

View File

@ -56,7 +56,7 @@ all_examples = \
events-buttons-lasso \
$(NULL)
LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_API_VERSION@.la -lm
LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_API_VERSION@.la $(LIBM)
AM_CFLAGS = $(CLUTTER_CFLAGS)