]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
configure: allow --enable-malloc-logging only with glibc
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 17 Nov 2024 21:46:15 +0000 (22:46 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Jan 2025 10:36:28 +0000 (10:36 +0000)
commit8038e2f7548792a090bdd255ec6bfbf4128fead7
treeee596a70960c7e43d6eb75a2c31a564ecece63e1
parentac18b8cd6a3f21b97f942efdbb0ec2f362bb132b
configure: allow --enable-malloc-logging only with glibc

The feature for 'malloc-logging' uses functionalities that are
available only in GNU libc.

Detect in 'configure' if OpenOCD is being compiled with glibc.
Set the macro '_DEBUG_FREE_SPACE_' only in case of glibc.

Change-Id: I43e9b87c7ad47171cfe3e7c1e5f96f11e19f98d0
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8592
Tested-by: jenkins
configure.ac