gh-99108: Inform HACL when explicit_bzero is unavailable by mhsmith · Pull Request #123027 · python/cpython (original) (raw)

For context, see #99108 (comment).

This PR fixes the build on Android and RHEL7 by defining LINUX_NO_EXPLICIT_BZERO when explicit_bzero is unavailable. It turns out there was already an autoconf check for this function, so I reused it.

Instead of creating a new Makefile variable, I appended the definition to LIBHACL_CFLAGS. This may be useful if HACL uses it in other files in the future.