]> granicus.if.org Git - strace/commitdiff
build: do not link strace with -ldl
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Feb 2015 05:01:25 +0000 (05:01 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Feb 2015 05:01:25 +0000 (05:01 +0000)
* configure.ac: Fix dladdr check.

configure.ac

index 5e198fff05e7ac22b8073ba09fba440f5b9f02a8..4f2e02bfc1d55fa3fc8ed0b4ee82db1f399a9959 100644 (file)
@@ -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)