Commit cab901c0 authored by Michal Vyskocil's avatar Michal Vyskocil

Problem: linking fails on glibc 2.24 with dladdr missing

Solution: try to find dladdr function on Linux - glibc systems provides
dlopen/dladdr in libdl and not in libc itseld.
parent ef3c2591
......@@ -157,6 +157,11 @@ case "${host_os}" in
AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
libzmq_on_linux="yes"
# dladdr/dlopen is in libdl on glibc
AC_SEARCH_LIBS([dladdr], [dl dld], [], [
AC_MSG_ERROR([unable to find the dladdr() function])
])
if test "x$libzmq_tipc_support" = "xyes"; then
AC_DEFINE(ZMQ_HAVE_TIPC, 1, [Have TIPC support])
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment