mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: linker fails looking for dladdr
Solution: search and add it via AC_CHECK_LIB when building with libunwind, as the backtrace function uses dladdr. This problem only appears on some distributions and with some compiler/toolchain versions.
This commit is contained in:
parent
065169a221
commit
1b3fcbd3ee
@ -650,6 +650,7 @@ PKG_CHECK_MODULES(LIBUNWIND, [libunwind],
|
||||
AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used])
|
||||
AC_SUBST([LIBUNWIND_CFLAGS])
|
||||
AC_SUBST([LIBUNWIND_LIBS])
|
||||
AC_CHECK_LIB([dl], [dladdr])
|
||||
],
|
||||
[
|
||||
AC_MSG_WARN([Cannot find libunwind])
|
||||
|
Loading…
Reference in New Issue
Block a user