Fix build and tests with --disable-tunables
commit5b8d271571434a74b2464c278eafe2ff81f31029
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 23 Jul 2021 08:27:56 +0000 (23 13:57 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 23 Jul 2021 08:27:56 +0000 (23 13:57 +0530)
treef26246c5541976c4c40740c801f7d42c02b68d44
parent9a7ab0769b295cbf5232140401742a8f34bda3de
Fix build and tests with --disable-tunables

Remove unused code and declare __libc_mallopt when !IS_IN (libc) to
allow the debug hook to build with --disable-tunables.

Also, run tst-ifunc-isa-2* tests only when tunables are enabled since
the result depends on it.

Tested on x86_64.

Reported-by: Matheus Castanho <msc@linux.ibm.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
malloc/arena.c
malloc/malloc-check.c
malloc/malloc.c
sysdeps/x86/Makefile