mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 15:50:07 +01:00
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:
parent
0d05bc9a63
commit
836cbe2d13
2 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -197,7 +197,8 @@ NetworkManager_LDADD = \
|
|||
$(GLIB_LIBS) \
|
||||
$(GUDEV_LIBS) \
|
||||
$(LIBNL_LIBS) \
|
||||
$(GMODULE_LIBS)
|
||||
$(GMODULE_LIBS) \
|
||||
$(LIBM)
|
||||
|
||||
NetworkManager_LDFLAGS = -rdynamic
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue