core: link against libm for pow()

Link against libm (using the LT_LIB_M macro and the $LIBM variable) as
we are using pow() and otherwise fail to build with stricter linkers like
binutils-gold.
This commit is contained in:
Michael Biebl 2009-11-06 13:40:13 -08:00 committed by Dan Williams
parent 0d05bc9a63
commit 836cbe2d13
2 changed files with 7 additions and 1 deletions

View file

@ -177,6 +177,11 @@ if test "$ac_have_iwevgenie" = no; then
AC_MSG_ERROR(wireless-tools library and development headers >= 28pre9 not installed or not functional)
fi
dnl
dnl Checks for libm - needed for pow()
dnl
LT_LIB_M
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.1 dbus-glib-1 >= 0.75)
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)

View file

@ -197,7 +197,8 @@ NetworkManager_LDADD = \
$(GLIB_LIBS) \
$(GUDEV_LIBS) \
$(LIBNL_LIBS) \
$(GMODULE_LIBS)
$(GMODULE_LIBS) \
$(LIBM)
NetworkManager_LDFLAGS = -rdynamic