mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 08:20:28 +01:00
core: link against libdl for dladdr()
For stricter linkers like binutils-gold.
This commit is contained in:
parent
836cbe2d13
commit
9cb3877afa
2 changed files with 8 additions and 1 deletions
|
|
@ -182,6 +182,12 @@ dnl Checks for libm - needed for pow()
|
|||
dnl
|
||||
LT_LIB_M
|
||||
|
||||
dnl
|
||||
dnl Checks for libdl - on certain platforms its part of libc
|
||||
dnl
|
||||
AC_CHECK_LIB([dl], [dladdr], LIBDL="-ldl", LIBDL="")
|
||||
AC_SUBST(LIBDL)
|
||||
|
||||
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.1 dbus-glib-1 >= 0.75)
|
||||
AC_SUBST(DBUS_CFLAGS)
|
||||
AC_SUBST(DBUS_LIBS)
|
||||
|
|
|
|||
|
|
@ -198,7 +198,8 @@ NetworkManager_LDADD = \
|
|||
$(GUDEV_LIBS) \
|
||||
$(LIBNL_LIBS) \
|
||||
$(GMODULE_LIBS) \
|
||||
$(LIBM)
|
||||
$(LIBM) \
|
||||
$(LIBDL)
|
||||
|
||||
NetworkManager_LDFLAGS = -rdynamic
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue