commit cb3bc6073a5b58e0e4774bdb2781374a51474a59 Author: Emanuele Aina Date: Tue Mar 12 22:25:19 2013 +0100 build: Link to libm for fpclassify() Linking with the gold linker failed with an undefined reference to __fpclassify since it uses '--no-copy-dt-needed-entries' by default. https://bugs.freedesktop.org/show_bug.cgi?id=62264 diff --git a/configure.ac b/configure.ac index fbb2f18..5d0b286 100644 --- a/configure.ac +++ b/configure.ac @@ -119,6 +119,9 @@ GETTEXT_PACKAGE=AC_PACKAGE_NAME AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE(GETTEXT_PACKAGE, "AC_PACKAGE_NAME", [foo]) +LT_LIB_M +AC_SUBST(LIBM) + GLIB_GSETTINGS dnl --------------------------------------------------------------------------- diff --git a/src/Makefile.am b/src/Makefile.am index cba0a41..a5af1d1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -96,6 +96,7 @@ colord_SOURCES += \ endif colord_LDADD = \ + $(LIBM) \ $(SQLITE_LIBS) \ $(POLKIT_LIBS) \ $(LCMS_LIBS) \