aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
authorDuncan Simpson <dr.duncan.p.simpson@gmail.com>2021-03-19 14:22:08 -0700
committerCary Coutant <ccoutant@gmail.com>2021-03-19 14:22:08 -0700
commit4ee60495054b362530a7471d363e00143ecb5cbe (patch)
tree3d4c8ce6e35c58fc1cbfb8edec25e1eb59ccd909 /gold/configure.ac
parent5cde809b7b9da3ad3aa0d65f0e5e92ab199d64f0 (diff)
downloadgdb-4ee60495054b362530a7471d363e00143ecb5cbe.zip
gdb-4ee60495054b362530a7471d363e00143ecb5cbe.tar.gz
gdb-4ee60495054b362530a7471d363e00143ecb5cbe.tar.bz2
Fix gold to use mallinfo2 if available instead of deprecated mallinfo.
gold/ PR gold/26585 * configure.ac: Add check for mallinfo2. * configure: Regenerate. * main.cc (main): Use mallinfo2 if available.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r--gold/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/configure.ac b/gold/configure.ac
index eed4566..1716a77 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -636,7 +636,7 @@ case "$ac_cv_search_dlopen" in
esac
AC_SUBST(DLOPEN_LIBS)
-AC_CHECK_FUNCS(mallinfo posix_fallocate fallocate readv sysconf times mkdtemp)
+AC_CHECK_FUNCS(mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp)
AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf, strverscmp, strndup, memmem])
# Use of ::std::tr1::unordered_map::rehash causes undefined symbols