diff options
author | Duncan Simpson <dr.duncan.p.simpson@gmail.com> | 2021-03-19 14:22:08 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2021-03-19 14:22:08 -0700 |
commit | 4ee60495054b362530a7471d363e00143ecb5cbe (patch) | |
tree | 3d4c8ce6e35c58fc1cbfb8edec25e1eb59ccd909 /gold/configure | |
parent | 5cde809b7b9da3ad3aa0d65f0e5e92ab199d64f0 (diff) | |
download | fsf-binutils-gdb-4ee60495054b362530a7471d363e00143ecb5cbe.zip fsf-binutils-gdb-4ee60495054b362530a7471d363e00143ecb5cbe.tar.gz fsf-binutils-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')
-rwxr-xr-x | gold/configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/configure b/gold/configure index e264a65..b9f062b 100755 --- a/gold/configure +++ b/gold/configure @@ -9967,7 +9967,7 @@ case "$ac_cv_search_dlopen" in esac -for ac_func in mallinfo posix_fallocate fallocate readv sysconf times mkdtemp +for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |