From: Dmitry V. Levin Date: Fri, 27 Feb 2015 05:01:25 +0000 (+0000) Subject: build: do not link strace with -ldl X-Git-Tag: v4.10~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=856b7596b83d70d6e7e27eef56fa7b92a0dac4af;p=strace build: do not link strace with -ldl * configure.ac: Fix dladdr check. --- diff --git a/configure.ac b/configure.ac index 5e198fff..4f2e02bf 100644 --- a/configure.ac +++ b/configure.ac @@ -730,11 +730,9 @@ if test "x$st_cv_have___builtin_popcount" = xyes; then [Define to 1 if the system provides __builtin_popcount function]) fi -dl_LIBS= -AC_CHECK_LIB([dl], [dladdr], []) +AC_CHECK_LIB([dl], [dladdr], [dl_LIBS='-ldl'], [dl_LIBS=]) if test "x$ac_cv_lib_dl_dladdr" = xyes; then AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if the system provides dladdr]) - dl_LIBS='-ldl' fi AC_SUBST(dl_LIBS)